Mercurial > repos > iuc > meme_dreme
annotate test-data/dreme_output_test2.html @ 1:cb8a2242bf03 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
author | iuc |
---|---|
date | Thu, 17 May 2018 14:11:27 -0400 |
parents | |
children | 3e5c80594237 |
rev | line source |
---|---|
1
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1 <!DOCTYPE HTML> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2 <html> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3 <head> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4 <meta charset="UTF-8"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5 <title>DREME</title> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
7 // @JSON_VAR data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
8 var data = { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
9 "program": "dreme", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
10 "version": "4.12.0", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
11 "release": "Tue Jun 27 16:22:50 2017 -0700", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
12 "cmd": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
13 "dreme", "-o", "./dreme_test2_out", "-p", "dreme_test_sites.fa", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
14 "-norc", "-rna", "-s", "1", "-e", "1e-05", "-g", "100", "-mink", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
15 "4", "-maxk", "10" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
16 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
17 "options": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
18 "revcomp": false, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
19 "ngen": 100, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
20 "add_pv_thresh": 0.01, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
21 "seed": 1, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
22 "stop": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
23 "evalue": "1e-05" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
24 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
25 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
26 "alphabet": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
27 "name": "RNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
28 "like": "rna", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
29 "ncore": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
30 "symbols": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
31 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
32 "symbol": "A", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
33 "name": "Adenine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
34 "colour": "CC0000" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
35 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
36 "symbol": "C", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
37 "name": "Cytosine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
38 "colour": "0000CC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
39 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
40 "symbol": "G", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
41 "name": "Guanine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
42 "colour": "FFB300" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
43 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
44 "symbol": "U", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
45 "aliases": "T", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
46 "name": "Uracil", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
47 "colour": "008000" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
48 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
49 "symbol": "N", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
50 "aliases": "X.", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
51 "name": "Any base", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
52 "equals": "ACGU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
53 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
54 "symbol": "V", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
55 "name": "Not U", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
56 "equals": "ACG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
57 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
58 "symbol": "H", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
59 "name": "Not G", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
60 "equals": "ACU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
61 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
62 "symbol": "D", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
63 "name": "Not C", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
64 "equals": "AGU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
65 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
66 "symbol": "B", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
67 "name": "Not A", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
68 "equals": "CGU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
69 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
70 "symbol": "M", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
71 "name": "Amino", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
72 "equals": "AC" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
73 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
74 "symbol": "R", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
75 "name": "Purine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
76 "equals": "AG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
77 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
78 "symbol": "W", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
79 "name": "Weak", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
80 "equals": "AU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
81 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
82 "symbol": "S", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
83 "name": "Strong", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
84 "equals": "CG" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
85 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
86 "symbol": "Y", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
87 "name": "Pyrimidine", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
88 "equals": "CU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
89 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
90 "symbol": "K", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
91 "name": "Keto", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
92 "equals": "GU" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
93 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
94 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
95 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
96 "background": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
97 "freqs": [0.221, 0.245, 0.221, 0.312] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
98 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
99 "sequence_db": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
100 "name": "dreme test sites", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
101 "file": "dreme_test_sites.fa", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
102 "lmod": "Thu Apr 26 15:09:03 CEST 2018", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
103 "count": 1000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
104 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
105 "control_db": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
106 "name": "shuffled positive sequences", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
107 "from": "shuffled", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
108 "count": 1000, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
109 "freqs": [0.221, 0.245, 0.221, 0.312] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
110 }, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
111 "motifs": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
112 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
113 "db": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
114 "id": "UUYUCY", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
115 "alt": "DREME-1", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
116 "len": 6, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
117 "nsites": 459, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
118 "evalue": "3.3e-013", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
119 "p": 387, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
120 "n": 210, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
121 "pvalue": "2.6e-018", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
122 "unerased_evalue": "3.3e-013", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
123 "pwm": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
124 [0.000000, 0.000000, 0.000000, 1.000000], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
125 [0.000000, 0.000000, 0.000000, 1.000000], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
126 [0.000000, 0.294118, 0.000000, 0.705882], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
127 [0.000000, 0.000000, 0.000000, 1.000000], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
128 [0.000000, 1.000000, 0.000000, 0.000000], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
129 [0.000000, 0.474946, 0.000000, 0.525054] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
130 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
131 "matches": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
132 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
133 "seq": "UUUUCC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
134 "p": 147, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
135 "n": 75, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
136 "pvalue": "1.8e-007", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
137 "evalue": "2.2e-002" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
138 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
139 "seq": "UUUUCU", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
140 "p": 155, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
141 "n": 94, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
142 "pvalue": "2.2e-005", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
143 "evalue": "2.8e+000" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
144 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
145 "seq": "UUCUCU", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
146 "p": 94, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
147 "n": 51, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
148 "pvalue": "1.3e-004", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
149 "evalue": "1.7e+001" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
150 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
151 "seq": "UUCUCC", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
152 "p": 75, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
153 "n": 42, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
154 "pvalue": "1.1e-003", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
155 "evalue": "1.4e+002" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
156 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
157 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
158 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
159 "db": 0, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
160 "id": "YAGG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
161 "alt": "DREME-2", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
162 "len": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
163 "nsites": 793, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
164 "evalue": "1.4e-011", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
165 "p": 600, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
166 "n": 416, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
167 "pvalue": "1.1e-016", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
168 "unerased_evalue": "6.3e-012", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
169 "pwm": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
170 [0.000000, 0.692308, 0.000000, 0.307692], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
171 [1.000000, 0.000000, 0.000000, 0.000000], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
172 [0.000000, 0.000000, 1.000000, 0.000000], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
173 [0.000000, 0.000000, 1.000000, 0.000000] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
174 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
175 "matches": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
176 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
177 "seq": "CAGG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
178 "p": 441, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
179 "n": 304, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
180 "pvalue": "1.5e-010", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
181 "evalue": "1.8e-005" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
182 }, { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
183 "seq": "UAGG", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
184 "p": 232, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
185 "n": 165, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
186 "pvalue": "1.1e-004", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
187 "evalue": "1.3e+001" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
188 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
189 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
190 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
191 ], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
192 "runtime": { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
193 "host": "ThinkPad-T450s", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
194 "when": "Thu May 03 13:22:11 CEST 2018", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
195 "cpu": 15.97, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
196 "real": 15.97, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
197 "stop": "evalue" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
198 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
199 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
200 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
201 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
202 var site_url = "http://meme-suite.org"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
203 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
204 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
205 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
206 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
207 * $ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
208 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
209 * Shorthand function for getElementById |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
210 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
211 function $(el) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
212 return document.getElementById(el); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
213 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
214 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
215 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
216 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
217 * See http://stackoverflow.com/a/5450113/66387 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
218 * Does string multiplication like the perl x operator. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
219 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
220 function string_mult(pattern, count) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
221 if (count < 1) return ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
222 var result = ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
223 while (count > 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
224 if (count & 1) result += pattern; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
225 count >>= 1, pattern += pattern; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
226 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
227 return result + pattern; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
228 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
229 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
230 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
231 * See http://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
232 * Slightly modified with information from |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
233 * https://developer.mozilla.org/en/DOM/window.location |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
234 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
235 function parse_params() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
236 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
237 var search, queryStart, queryEnd, query, params, nvPairs, i, nv, n, v; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
238 search = window.location.search; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
239 queryStart = search.indexOf("?") + 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
240 queryEnd = search.indexOf("#") + 1 || search.length + 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
241 query = search.slice(queryStart, queryEnd - 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
242 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
243 if (query === search || query === "") return {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
244 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
245 params = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
246 nvPairs = query.replace(/\+/g, " ").split("&"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
247 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
248 for (i = 0; i < nvPairs.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
249 nv = nvPairs[i].split("="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
250 n = decodeURIComponent(nv[0]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
251 v = decodeURIComponent(nv[1]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
252 // allow a name to be used multiple times |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
253 // storing each value in the array |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
254 if (!(n in params)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
255 params[n] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
256 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
257 params[n].push(nv.length === 2 ? v : null); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
258 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
259 return params; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
260 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
261 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
262 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
263 * coords |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
264 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
265 * Calculates the x and y offset of an element. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
266 * From http://www.quirksmode.org/js/findpos.html |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
267 * with alterations to take into account scrolling regions |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
268 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
269 function coords(elem) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
270 var myX = myY = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
271 if (elem.getBoundingClientRect) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
272 var rect; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
273 rect = elem.getBoundingClientRect(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
274 myX = rect.left + ((typeof window.pageXOffset !== "undefined") ? |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
275 window.pageXOffset : document.body.scrollLeft); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
276 myY = rect.top + ((typeof window.pageYOffset !== "undefined") ? |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
277 window.pageYOffset : document.body.scrollTop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
278 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
279 // this fall back doesn't properly handle absolutely positioned elements |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
280 // inside a scrollable box |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
281 var node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
282 if (elem.offsetParent) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
283 // subtract all scrolling |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
284 node = elem; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
285 do { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
286 myX -= node.scrollLeft ? node.scrollLeft : 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
287 myY -= node.scrollTop ? node.scrollTop : 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
288 } while (node = node.parentNode); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
289 // this will include the page scrolling (which is unwanted) so add it back on |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
290 myX += (typeof window.pageXOffset !== "undefined") ? window.pageXOffset : document.body.scrollLeft; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
291 myY += (typeof window.pageYOffset !== "undefined") ? window.pageYOffset : document.body.scrollTop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
292 // sum up offsets |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
293 node = elem; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
294 do { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
295 myX += node.offsetLeft; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
296 myY += node.offsetTop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
297 } while (node = node.offsetParent); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
298 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
299 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
300 return [myX, myY]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
301 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
302 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
303 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
304 * position_popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
305 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
306 * Positions a popup relative to an anchor element. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
307 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
308 * The avaliable positions are: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
309 * 0 - Centered below the anchor. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
310 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
311 function position_popup(anchor, popup, position) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
312 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
313 var a_x, a_y, a_w, a_h, p_x, p_y, p_w, p_h; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
314 var a_xy, spacer, margin, scrollbar, page_w; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
315 // define constants |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
316 spacer = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
317 margin = 15; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
318 scrollbar = 15; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
319 // define the positions and widths |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
320 a_xy = coords(anchor); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
321 a_x = a_xy[0]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
322 a_y = a_xy[1]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
323 a_w = anchor.offsetWidth; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
324 a_h = anchor.offsetHeight; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
325 p_w = popup.offsetWidth; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
326 p_h = popup.offsetHeight; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
327 page_w = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
328 if (window.innerWidth) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
329 page_w = window.innerWidth; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
330 } else if (document.body) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
331 page_w = document.body.clientWidth; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
332 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
333 // check the position type is defined |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
334 if (typeof position !== "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
335 position = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
336 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
337 // calculate the popup position |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
338 switch (position) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
339 case 1: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
340 p_x = a_x + a_w + spacer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
341 p_y = a_y + (a_h / 2) - (p_h / 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
342 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
343 case 0: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
344 default: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
345 p_x = a_x + (a_w / 2) - (p_w / 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
346 p_y = a_y + a_h + spacer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
347 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
348 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
349 // constrain the popup position |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
350 if (p_x < margin) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
351 p_x = margin; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
352 } else if (page_w != null && (p_x + p_w) > (page_w - margin - scrollbar)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
353 p_x = page_w - margin - scrollbar - p_w; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
354 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
355 if (p_y < margin) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
356 p_y = margin; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
357 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
358 // position the popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
359 popup.style.left = p_x + "px"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
360 popup.style.top = p_y + "px"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
361 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
362 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
363 function lookup_help_popup(popup_id) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
364 var _body, pop, info; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
365 pop = document.getElementById(popup_id); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
366 if (pop == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
367 _body = document.getElementsByTagName("body")[0]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
368 pop = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
369 pop.className = "pop_content"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
370 pop.id = popup_id; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
371 pop.style.backgroundColor = "#FFC"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
372 pop.style.borderColor = "black"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
373 info = document.createElement("p"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
374 info.style.fontWeight = "bold"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
375 info.appendChild(document.createTextNode("Error: No popup for topic \"" + popup_id + "\".")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
376 pop.appendChild(info); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
377 // this might cause problems with the menu, but as this only happens |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
378 // when something is already wrong I don't think that's too much of a problem |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
379 _body.insertBefore(pop, _body.firstChild); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
380 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
381 if (document.getElementsByTagName('body')[0].hasAttribute("data-autobtns")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
382 if (!/\bauto_buttons\b/.test(pop.className)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
383 pop.className += " auto_buttons"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
384 var back_btn_sec = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
385 back_btn_sec.className = "nested_only pop_back_sec"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
386 var back_btn = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
387 back_btn.className = "pop_back"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
388 back_btn.appendChild(document.createTextNode("<< back")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
389 back_btn.addEventListener("click", function(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
390 help_return(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
391 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
392 back_btn_sec.appendChild(back_btn); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
393 pop.insertBefore(back_btn_sec, pop.firstChild); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
394 var close_btn_sec = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
395 close_btn_sec.className = "pop_close_sec"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
396 var close_btn = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
397 close_btn.className = "pop_close"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
398 close_btn.appendChild(document.createTextNode("close")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
399 close_btn.addEventListener("click", function(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
400 help_popup(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
401 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
402 close_btn_sec.appendChild(close_btn); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
403 pop.appendChild(close_btn_sec); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
404 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
405 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
406 return pop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
407 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
408 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
409 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
410 * help_popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
411 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
412 * Moves around help pop-ups so they appear |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
413 * below an activator. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
414 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
415 function help_popup(activator, popup_id) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
416 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
417 var pop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
418 // set default values |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
419 if (typeof help_popup.popup === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
420 help_popup.popup = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
421 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
422 if (typeof help_popup.activator === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
423 help_popup.activator = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
424 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
425 var last_pop = (help_popup.popup.length > 0 ? help_popup.popup[help_popup.popup.length - 1] : null); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
426 if (typeof(activator) == "undefined") { // no activator so hide |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
427 if (last_pop != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
428 last_pop.style.display = 'none'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
429 help_popup.popup = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
430 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
431 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
432 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
433 pop = lookup_help_popup(popup_id); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
434 if (pop == last_pop) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
435 if (activator == help_popup.activator) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
436 //hide popup (as we've already shown it for the current help button) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
437 last_pop.style.display = 'none'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
438 help_popup.popup = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
439 return; // toggling complete! |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
440 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
441 } else if (last_pop != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
442 //activating different popup so hide current one |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
443 last_pop.style.display = 'none'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
444 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
445 help_popup.popup = [pop]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
446 help_popup.activator = activator; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
447 toggle_class(pop, "nested", false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
448 //must make the popup visible to measure it or it has zero width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
449 pop.style.display = 'block'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
450 position_popup(activator, pop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
451 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
452 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
453 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
454 * help_refine |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
455 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
456 * Intended for links within a help popup. Stores a stack of state so |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
457 * you can go back. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
458 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
459 function help_refine(popup_id) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
460 if (help_popup.popup == null || help_popup.popup.length == 0 || help_popup.activator == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
461 throw new Error("Can not refine a help popup when one is not shown!"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
462 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
463 var pop = lookup_help_popup(popup_id); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
464 var last_pop = help_popup.popup[help_popup.popup.length - 1]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
465 if (pop == last_pop) return; // slightly odd, but no real cause for alarm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
466 help_popup.popup.push(pop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
467 toggle_class(pop, "nested", true); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
468 last_pop.style.display = "none"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
469 //must make the popup visible to measure it or it has zero width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
470 pop.style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
471 position_popup(help_popup.activator, pop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
472 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
473 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
474 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
475 * help_return |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
476 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
477 * Intended for links within a help popup. Stores a stack of state so |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
478 * you can go back. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
479 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
480 function help_return() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
481 if (help_popup.popup == null || help_popup.popup.length == 0 || help_popup.activator == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
482 throw new Error("Can not return to a earlier help popup when one is not shown!"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
483 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
484 var last_pop = help_popup.popup.pop(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
485 last_pop.style.display = "none"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
486 var pop = (help_popup.popup.length > 0 ? help_popup.popup[help_popup.popup.length - 1] : null); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
487 if (pop != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
488 toggle_class(pop, "nested", help_popup.popup.length > 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
489 pop.style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
490 position_popup(help_popup.activator, pop); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
491 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
492 help_popup.activator = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
493 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
494 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
495 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
496 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
497 * update_scroll_pad |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
498 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
499 * Creates padding at the bottom of the page to allow |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
500 * scrolling of anything into view. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
501 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
502 function update_scroll_pad() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
503 var page, pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
504 page = (document.compatMode === "CSS1Compat") ? document.documentElement : document.body; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
505 pad = $("scrollpad"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
506 if (pad === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
507 pad = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
508 pad.id = 'scrollpad'; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
509 document.getElementsByTagName('body')[0].appendChild(pad); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
510 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
511 pad.style.height = Math.abs(page.clientHeight - 100) + "px"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
512 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
513 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
514 function substitute_classes(node, remove, add) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
515 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
516 var list, all, i, cls, classes; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
517 list = node.className.split(/\s+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
518 all = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
519 for (i = 0; i < list.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
520 if (list[i].length > 0) all[list[i]] = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
521 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
522 for (i = 0; i < remove.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
523 if (all.hasOwnProperty(remove[i])) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
524 delete all[remove[i]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
525 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
526 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
527 for (i = 0; i < add.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
528 all[add[i]] = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
529 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
530 classes = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
531 for (cls in all) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
532 classes += cls + " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
533 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
534 node.className = classes; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
535 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
536 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
537 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
538 * toggle_class |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
539 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
540 * Adds or removes a class from the node. If the parameter 'enabled' is not |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
541 * passed then the existence of the class will be toggled, otherwise it will be |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
542 * included if enabled is true. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
543 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
544 function toggle_class(node, cls, enabled) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
545 var classes = node.className; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
546 var list = classes.replace(/^\s+/, '').replace(/\s+$/, '').split(/\s+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
547 var found = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
548 for (var i = 0; i < list.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
549 if (list[i] == cls) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
550 list.splice(i, 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
551 i--; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
552 found = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
553 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
554 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
555 if (typeof enabled == "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
556 if (!found) list.push(cls); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
557 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
558 if (enabled) list.push(cls); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
559 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
560 node.className = list.join(" "); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
561 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
562 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
563 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
564 * find_child |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
565 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
566 * Searches child nodes in depth first order and returns the first it finds |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
567 * with the className specified. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
568 * TODO replace with querySelector |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
569 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
570 function find_child(node, className) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
571 var pattern; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
572 if (node == null || typeof node !== "object") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
573 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
574 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
575 if (typeof className === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
576 pattern = new RegExp("\\b" + className + "\\b"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
577 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
578 pattern = className; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
579 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
580 if (node.nodeType == Node.ELEMENT_NODE && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
581 pattern.test(node.className)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
582 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
583 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
584 var result = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
585 for (var i = 0; i < node.childNodes.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
586 result = find_child(node.childNodes[i], pattern); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
587 if (result != null) break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
588 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
589 return result; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
590 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
591 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
592 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
593 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
594 * find_parent |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
595 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
596 * Searches parent nodes outwards from the node and returns the first it finds |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
597 * with the className specified. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
598 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
599 function find_parent(node, className) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
600 var pattern; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
601 pattern = new RegExp("\\b" + className + "\\b"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
602 do { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
603 if (node.nodeType == Node.ELEMENT_NODE && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
604 pattern.test(node.className)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
605 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
606 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
607 } while (node = node.parentNode); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
608 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
609 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
610 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
611 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
612 * find_parent_tag |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
613 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
614 * Searches parent nodes outwards from the node and returns the first it finds |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
615 * with the tag name specified. HTML tags should be specified in upper case. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
616 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
617 function find_parent_tag(node, tag_name) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
618 do { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
619 if (node.nodeType == Node.ELEMENT_NODE && node.tagName == tag_name) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
620 return node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
621 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
622 } while (node = node.parentNode); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
623 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
624 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
625 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
626 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
627 * __toggle_help |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
628 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
629 * Uses the 'topic' property of the this object to |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
630 * toggle display of a help topic. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
631 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
632 * This function is not intended to be called directly. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
633 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
634 function __toggle_help(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
635 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
636 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
637 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
638 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
639 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
640 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
641 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
642 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
643 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
644 help_popup(this, this.getAttribute("data-topic")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
645 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
646 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
647 function setup_help_button(button) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
648 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
649 var topic; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
650 if (button.hasAttribute("data-topic")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
651 topic = button.getAttribute("data-topic"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
652 if (document.getElementById(topic) != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
653 button.tabIndex = "0"; // make keyboard selectable |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
654 button.addEventListener("click", function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
655 help_popup(button, topic); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
656 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
657 button.addEventListener("keydown", function(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
658 // toggle only on Enter or Spacebar, let other keys do their thing |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
659 if (e.keyCode !== 13 && e.keyCode !== 32) return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
660 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
661 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
662 help_popup(button, topic); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
663 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
664 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
665 button.style.visibility = "hidden"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
666 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
667 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
668 button.className += " active"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
669 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
670 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
671 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
672 * help_button |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
673 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
674 * Makes a help button for the passed topic. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
675 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
676 function help_button(topic) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
677 var btn = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
678 btn.className = "help"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
679 btn.setAttribute("data-topic", topic); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
680 setup_help_button(btn); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
681 return btn; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
682 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
683 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
684 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
685 * prepare_download |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
686 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
687 * Sets the attributes of a link to setup a file download using the given content. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
688 * If no link is provided then create one and click it. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
689 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
690 function prepare_download(content, mimetype, filename, link) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
691 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
692 // if no link is provided then create one and click it |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
693 var click_link = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
694 if (!link) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
695 link = document.createElement("a"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
696 click_link = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
697 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
698 try { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
699 // Use a BLOB to convert the text into a data URL. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
700 // We could do this manually with a base 64 conversion. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
701 // This will only be supported on modern browsers, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
702 // hence the try block. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
703 var blob = new Blob([content], {type: mimetype}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
704 var reader = new FileReader(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
705 reader.onloadend = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
706 // If we're lucky the browser will also support the download |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
707 // attribute which will let us suggest a file name to save the link. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
708 // Otherwise it is likely that the filename will be unintelligible. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
709 link.setAttribute("download", filename); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
710 link.href = reader.result; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
711 if (click_link) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
712 // must add the link to click it |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
713 document.body.appendChild(link); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
714 link.click(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
715 document.body.removeChild(link); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
716 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
717 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
718 reader.readAsDataURL(blob); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
719 } catch (error) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
720 if (console && console.log) console.log(error); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
721 // probably an old browser |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
722 link.href = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
723 link.visible = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
724 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
725 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
726 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
727 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
728 * add_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
729 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
730 * Add a cell to the table row. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
731 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
732 function add_cell(row, node, cls, click_action) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
733 var cell = row.insertCell(row.cells.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
734 if (node) cell.appendChild(node); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
735 if (cls && cls !== "") cell.className = cls; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
736 if (click_action) cell.addEventListener("click", click_action, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
737 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
738 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
739 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
740 * add_header_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
741 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
742 * Add a header cell to the table row. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
743 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
744 function add_header_cell(row, node, help_topic, cls, colspan) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
745 var th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
746 if (node) th.appendChild(node); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
747 if (help_topic && help_topic !== "") th.appendChild(help_button(help_topic)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
748 if (cls && cls !== "") th.className = cls; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
749 if (typeof colspan == "number" && colspan > 1) th.colSpan = colspan; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
750 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
751 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
752 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
753 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
754 * add_text_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
755 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
756 * Add a text cell to the table row. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
757 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
758 function add_text_cell(row, text, cls, action) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
759 var node = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
760 if (typeof(text) != 'undefined') node = document.createTextNode(text); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
761 add_cell(row, node, cls, action); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
762 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
763 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
764 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
765 * add_text_header_cell |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
766 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
767 * Add a text header cell to the table row. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
768 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
769 function add_text_header_cell(row, text, help_topic, cls, action, colspan) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
770 var node = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
771 if (typeof(text) != 'undefined') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
772 var nbsp = (help_topic ? "\u00A0" : ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
773 var str = "" + text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
774 var parts = str.split(/\n/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
775 if (parts.length === 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
776 if (action) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
777 node = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
778 node.appendChild(document.createTextNode(str + nbsp)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
779 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
780 node = document.createTextNode(str + nbsp); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
781 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
782 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
783 node = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
784 for (var i = 0; i < parts.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
785 if (i !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
786 node.appendChild(document.createElement("br")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
787 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
788 node.appendChild(document.createTextNode(parts[i])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
789 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
790 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
791 if (action) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
792 node.addEventListener("click", action, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
793 node.style.cursor = "pointer"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
794 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
795 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
796 add_header_cell(row, node, help_topic, cls, colspan); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
797 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
798 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
799 function setup_help() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
800 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
801 var help_buttons, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
802 help_buttons = document.querySelectorAll(".help:not(.active)"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
803 for (i = 0; i < help_buttons.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
804 setup_help_button(help_buttons[i]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
805 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
806 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
807 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
808 function setup_scrollpad() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
809 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
810 if (document.getElementsByTagName('body')[0].hasAttribute("data-scrollpad") && document.getElementById("scrollpad") == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
811 window.addEventListener("resize", update_scroll_pad, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
812 update_scroll_pad(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
813 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
814 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
815 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
816 // anon function to avoid polluting global scope |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
817 (function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
818 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
819 window.addEventListener("load", function load(evt) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
820 window.removeEventListener("load", load, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
821 setup_help(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
822 setup_scrollpad(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
823 }, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
824 })(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
825 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
826 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
827 * make_link |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
828 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
829 * Creates a text node and if a URL is specified it surrounds it with a link. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
830 * If the URL doesn't begin with "http://" it automatically adds it, as |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
831 * relative links don't make much sense in this context. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
832 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
833 function make_link(text, url) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
834 var textNode = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
835 var link = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
836 if (typeof text !== "undefined" && text !== null) textNode = document.createTextNode(text); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
837 if (typeof url === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
838 if (url.indexOf("//") == -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
839 url = "http://" + url; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
840 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
841 link = document.createElement('a'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
842 link.href = url; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
843 if (textNode) link.appendChild(textNode); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
844 return link; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
845 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
846 return textNode; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
847 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
848 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
849 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
850 function motif_logo_template(inputs) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
851 function _input(name) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
852 if (typeof inputs[name] === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
853 throw new Error("Missing template variable: " + name); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
854 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
855 return inputs[name]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
856 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
857 return ( |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
858 "%!PS-Adobe-3.0 EPSF-3.0\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
859 "%%Title: Sequence Logo : " + _input("TITLE") + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
860 "%%Creator: " + _input("CREATOR") + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
861 "%%CreationDate: " + _input("CREATIONDATE") + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
862 "%%BoundingBox: 0 0 " + _input("BOUNDINGWIDTH") + " " + _input("BOUNDINGHEIGHT") + " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
863 "%%Pages: 0\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
864 "%%DocumentFonts: \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
865 "%%EndComments\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
866 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
867 "% ---- CONSTANTS ----\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
868 "\/cmfactor 72 2.54 div def % defines points -> cm conversion\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
869 "\/cm {cmfactor mul} bind def % defines centimeters\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
870 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
871 "% ---- VARIABLES ----\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
872 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
873 "% NA = Nucleic Acid, AA = Amino Acid\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
874 "\/logoType (" + _input("LOGOTYPE") + ") def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
875 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
876 "\/logoTitle (" + _input("TITLE") + ") def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
877 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
878 "% Dimensions in cm\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
879 "\/logoWidth " + _input("LOGOWIDTH") + " cm def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
880 "\/logoHeight " + _input("LOGOLINEHEIGHT") + " cm def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
881 "\/totalHeight " + _input("LOGOHEIGHT") + " cm def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
882 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
883 "\/yaxis " + _input("YAXIS") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
884 "\/yaxisLabel (" + _input("YAXISLABEL") + ") def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
885 "\/yaxisBits " + _input("BARBITS") + " def % bits\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
886 "\/yaxisTicBits " + _input("TICBITS") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
887 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
888 "\/xaxis " + _input("NUMBERING") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
889 "\/xaxisLabel (" + _input("XAXISLABEL") + ") def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
890 "\/showEnds (" + _input("SHOWENDS") + ") def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
891 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
892 "\/showFineprint true def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
893 "\/fineprint (" + _input("FINEPRINT") + ") def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
894 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
895 "\/charsPerLine " + _input("CHARSPERLINE") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
896 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
897 "\/showingBox " + _input("SHOWINGBOX") + " def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
898 "\/shrinking false def % true falses\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
899 "\/shrink 1.0 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
900 "\/outline " + _input("OUTLINE") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
901 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
902 "\/IbeamFraction " + _input("ERRORBARFRACTION") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
903 "\/IbeamGray 0.50 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
904 "\/IbeamLineWidth 0.5 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
905 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
906 "\/fontsize " + _input("FONTSIZE") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
907 "\/titleFontsize " + _input("TITLEFONTSIZE") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
908 "\/smallFontsize " + _input("SMALLFONTSIZE") + " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
909 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
910 "\/topMargin " + _input("TOPMARGIN") + " cm def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
911 "\/bottomMargin " + _input("BOTTOMMARGIN") + " cm def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
912 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
913 "\/defaultColor [0 0 0] def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
914 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
915 _input("COLORDICT") + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
916 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
917 "\/colorDict fullColourDict def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
918 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
919 "% ---- DERIVED PARAMETERS ----\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
920 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
921 "\/leftMargin\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
922 " fontsize 3.5 mul\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
923 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
924 "def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
925 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
926 "\/rightMargin \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
927 " %Add extra room if showing ends\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
928 " showEnds (false) eq { fontsize}{fontsize 1.5 mul} ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
929 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
930 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
931 "\/yaxisHeight \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
932 " logoHeight \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
933 " bottomMargin sub \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
934 " topMargin sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
935 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
936 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
937 "\/ticWidth fontsize 2 div def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
938 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
939 "\/pointsPerBit yaxisHeight yaxisBits div def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
940 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
941 "\/stackMargin 1 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
942 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
943 "% Do not add space aroung characters if characters are boxed\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
944 "\/charRightMargin \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
945 " showingBox { 0.0 } {stackMargin} ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
946 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
947 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
948 "\/charTopMargin \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
949 " showingBox { 0.0 } {stackMargin} ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
950 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
951 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
952 "\/charWidth\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
953 " logoWidth\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
954 " leftMargin sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
955 " rightMargin sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
956 " charsPerLine div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
957 " charRightMargin sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
958 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
959 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
960 "\/charWidth4 charWidth 4 div def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
961 "\/charWidth2 charWidth 2 div def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
962 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
963 "\/stackWidth \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
964 " charWidth charRightMargin add\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
965 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
966 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
967 "\/numberFontsize \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
968 " fontsize charWidth lt {fontsize}{charWidth} ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
969 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
970 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
971 "% movements to place 5'\/N and 3'\/C symbols\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
972 "\/leftEndDeltaX fontsize neg def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
973 "\/leftEndDeltaY fontsize 1.5 mul neg def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
974 "\/rightEndDeltaX fontsize 0.25 mul def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
975 "\/rightEndDeltaY leftEndDeltaY def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
976 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
977 "% Outline width is proporional to charWidth, \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
978 "% but no less that 1 point\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
979 "\/outlinewidth \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
980 " charWidth 32 div dup 1 gt {}{pop 1} ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
981 "def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
982 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
983 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
984 "% ---- PROCEDURES ----\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
985 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
986 "\/StartLogo { \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
987 " % Save state\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
988 " save \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
989 " gsave \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
990 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
991 " % Print Logo Title, top center \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
992 " gsave \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
993 " SetStringFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
994 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
995 " logoWidth 2 div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
996 " logoTitle\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
997 " stringwidth pop 2 div sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
998 " totalHeight\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
999 " titleFontsize sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1000 " moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1001 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1002 " logoTitle\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1003 " show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1004 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1005 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1006 " % Print X-axis label, bottom center\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1007 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1008 " SetStringFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1009 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1010 " logoWidth 2 div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1011 " xaxisLabel\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1012 " stringwidth pop 2 div sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1013 " 0\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1014 " titleFontsize 3 div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1015 " add\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1016 " moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1017 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1018 " xaxisLabel\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1019 " show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1020 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1021 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1022 " % Show Fine Print\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1023 " showFineprint {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1024 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1025 " SetSmallFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1026 " logoWidth\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1027 " fineprint stringwidth pop sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1028 " smallFontsize sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1029 " smallFontsize 3 div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1030 " moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1031 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1032 " fineprint show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1033 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1034 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1035 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1036 " % Move to lower left corner of last line, first stack\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1037 " leftMargin bottomMargin translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1038 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1039 " % Move above first line ready for StartLine \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1040 " 0 totalHeight translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1041 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1042 " SetLogoFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1043 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1044 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1045 "\/EndLogo { \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1046 " grestore \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1047 " showpage \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1048 " restore \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1049 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1050 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1051 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1052 "\/StartLine { \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1053 " % move down to the bottom of the line:\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1054 " 0 logoHeight neg translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1055 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1056 " gsave \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1057 " yaxis { MakeYaxis } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1058 " xaxis { showEnds (true) eq {ShowLeftEnd} if } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1059 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1060 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1061 "\/EndLine{ \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1062 " xaxis { showEnds (true) eq {ShowRightEnd} if } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1063 " grestore \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1064 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1065 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1066 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1067 "\/MakeYaxis {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1068 " gsave \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1069 " stackMargin neg 0 translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1070 " ShowYaxisBar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1071 " ShowYaxisLabel\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1072 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1073 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1074 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1075 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1076 "\/ShowYaxisBar { \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1077 " gsave \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1078 " SetStringFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1079 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1080 " \/str 10 string def % string to hold number \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1081 " \/smallgap stackMargin 2 div def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1082 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1083 " % Draw first tic and bar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1084 " gsave \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1085 " ticWidth neg 0 moveto \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1086 " ticWidth 0 rlineto \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1087 " 0 yaxisHeight rlineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1088 " stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1089 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1090 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1091 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1092 " % Draw the tics\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1093 " % initial increment limit proc for\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1094 " 0 yaxisTicBits yaxisBits abs %cvi\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1095 " {\/loopnumber exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1096 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1097 " % convert the number coming from the loop to a string\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1098 " % and find its width\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1099 " loopnumber 10 str cvrs\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1100 " \/stringnumber exch def % string representing the number\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1101 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1102 " stringnumber stringwidth pop\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1103 " \/numberwidth exch def % width of number to show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1104 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1105 " \/halfnumberheight\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1106 " stringnumber CharBoxHeight 2 div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1107 " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1108 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1109 " numberwidth % move back width of number\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1110 " neg loopnumber pointsPerBit mul % shift on y axis\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1111 " halfnumberheight sub % down half the digit\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1112 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1113 " moveto % move back the width of the string\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1114 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1115 " ticWidth neg smallgap sub % Move back a bit more \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1116 " 0 rmoveto % move back the width of the tic \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1117 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1118 " stringnumber show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1119 " smallgap 0 rmoveto % Make a small gap \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1120 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1121 " % now show the tic mark\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1122 " 0 halfnumberheight rmoveto % shift up again\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1123 " ticWidth 0 rlineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1124 " stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1125 " } for\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1126 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1127 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1128 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1129 "\/ShowYaxisLabel {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1130 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1131 " SetStringFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1132 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1133 " % How far we move left depends on the size of\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1134 " % the tic labels.\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1135 " \/str 10 string def % string to hold number \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1136 " yaxisBits yaxisTicBits div cvi yaxisTicBits mul \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1137 " str cvs stringwidth pop\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1138 " ticWidth 1.5 mul add neg \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1139 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1140 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1141 " yaxisHeight\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1142 " yaxisLabel stringwidth pop\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1143 " sub 2 div\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1144 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1145 " translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1146 " 90 rotate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1147 " 0 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1148 " yaxisLabel show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1149 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1150 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1151 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1152 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1153 "\/StartStack { % <stackNumber> startstack\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1154 " xaxis {MakeNumber}{pop} ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1155 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1156 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1157 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1158 "\/EndStack {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1159 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1160 " stackWidth 0 translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1161 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1162 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1163 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1164 "% Draw a character whose height is proportional to symbol bits\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1165 "\/MakeSymbol{ % charbits character MakeSymbol\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1166 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1167 " \/char exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1168 " \/bits exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1169 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1170 " \/bitsHeight \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1171 " bits pointsPerBit mul \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1172 " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1173 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1174 " \/charHeight \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1175 " bitsHeight charTopMargin sub\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1176 " dup \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1177 " 0.0 gt {}{pop 0.0} ifelse % if neg replace with zero \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1178 " def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1179 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1180 " charHeight 0.0 gt {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1181 " char SetColor\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1182 " charWidth charHeight char ShowChar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1183 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1184 " showingBox { % Unfilled box\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1185 " 0 0 charWidth charHeight false ShowBox\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1186 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1187 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1188 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1189 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1190 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1191 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1192 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1193 " 0 bitsHeight translate \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1194 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1195 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1196 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1197 "\/ShowChar { % <width> <height> <char> ShowChar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1198 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1199 " \/tc exch def % The character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1200 " \/ysize exch def % the y size of the character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1201 " \/xsize exch def % the x size of the character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1202 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1203 " \/xmulfactor 1 def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1204 " \/ymulfactor 1 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1205 " \/limmulfactor 0.01 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1206 " \/drawable true def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1207 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1208 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1209 " % if ysize is negative, make everything upside down!\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1210 " ysize 0 lt {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1211 " % put ysize normal in this orientation\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1212 " \/ysize ysize abs def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1213 " xsize ysize translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1214 " 180 rotate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1215 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1216 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1217 " shrinking {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1218 " xsize 1 shrink sub 2 div mul\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1219 " ysize 1 shrink sub 2 div mul translate \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1220 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1221 " shrink shrink scale\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1222 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1223 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1224 " % Calculate the font scaling factors\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1225 " % Loop twice to catch small correction due to first scaling\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1226 " 2 {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1227 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1228 " xmulfactor ymulfactor scale\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1229 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1230 " ysize % desired size of character in points\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1231 " tc CharBoxHeight \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1232 " dup 0.0 ne {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1233 " div % factor by which to scale up the character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1234 " \/ymulfactor exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1235 " } % end if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1236 " {pop pop}\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1237 " ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1238 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1239 " xsize % desired size of character in points\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1240 " tc CharBoxWidth \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1241 " dup 0.0 ne {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1242 " div % factor by which to scale up the character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1243 " \/xmulfactor exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1244 " } % end if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1245 " {pop pop}\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1246 " ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1247 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1248 " % if the multiplication factors get too small we need to avoid a crash\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1249 " xmulfactor limmulfactor lt {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1250 " \/xmulfactor 1 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1251 " \/drawable false def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1252 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1253 " ymulfactor limmulfactor lt {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1254 " \/ymulfactor 1 def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1255 " \/drawable false def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1256 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1257 " } repeat\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1258 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1259 " % Adjust horizontal position if the symbol is an I\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1260 " tc (I) eq {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1261 " charWidth 2 div % half of requested character width\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1262 " tc CharBoxWidth 2 div % half of the actual character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1263 " sub 0 translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1264 " % Avoid x scaling for I \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1265 " \/xmulfactor 1 def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1266 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1267 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1268 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1269 " % ---- Finally, draw the character\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1270 " drawable { \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1271 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1272 " xmulfactor ymulfactor scale\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1273 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1274 " % Move lower left corner of character to start point\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1275 " tc CharBox pop pop % llx lly : Lower left corner\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1276 " exch neg exch neg\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1277 " moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1278 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1279 " outline { % outline characters:\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1280 " outlinewidth setlinewidth\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1281 " tc true charpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1282 " gsave 1 setgray fill grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1283 " clip stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1284 " } { % regular characters\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1285 " tc show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1286 " } ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1287 " } if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1288 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1289 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1290 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1291 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1292 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1293 "\/ShowBox { % x1 y1 x2 y2 filled ShowBox\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1294 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1295 " \/filled exch def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1296 " \/y2 exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1297 " \/x2 exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1298 " \/y1 exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1299 " \/x1 exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1300 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1301 " x1 y1 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1302 " x2 y1 lineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1303 " x2 y2 lineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1304 " x1 y2 lineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1305 " closepath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1306 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1307 " clip\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1308 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1309 " filled {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1310 " fill\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1311 " }{ \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1312 " 0 setgray stroke \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1313 " } ifelse\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1314 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1315 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1316 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1317 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1318 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1319 "\/MakeNumber { % number MakeNumber\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1320 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1321 " SetNumberFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1322 " stackWidth 0 translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1323 " 90 rotate % rotate so the number fits\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1324 " dup stringwidth pop % find the length of the number\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1325 " neg % prepare for move\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1326 " stackMargin sub % Move back a bit\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1327 " charWidth (0) CharBoxHeight % height of numbers\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1328 " sub 2 div %\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1329 " moveto % move back to provide space\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1330 " show\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1331 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1332 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1333 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1334 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1335 "\/Ibeam{ % heightInBits Ibeam\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1336 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1337 " % Make an Ibeam of twice the given height in bits\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1338 " \/height exch pointsPerBit mul def \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1339 " \/heightDRAW height IbeamFraction mul def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1340 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1341 " IbeamLineWidth setlinewidth\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1342 " IbeamGray setgray \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1343 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1344 " charWidth2 height neg translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1345 " ShowIbar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1346 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1347 " 0 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1348 " 0 heightDRAW rlineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1349 " stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1350 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1351 " 0 height moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1352 " 0 height rmoveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1353 " currentpoint translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1354 " ShowIbar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1355 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1356 " 0 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1357 " 0 heightDRAW neg rlineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1358 " currentpoint translate\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1359 " stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1360 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1361 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1362 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1363 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1364 "\/ShowIbar { % make a horizontal bar\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1365 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1366 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1367 " charWidth4 neg 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1368 " charWidth4 0 lineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1369 " stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1370 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1371 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1372 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1373 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1374 "\/ShowLeftEnd {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1375 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1376 " SetStringFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1377 " leftEndDeltaX leftEndDeltaY moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1378 " logoType (NA) eq {(5) show ShowPrime} if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1379 " logoType (AA) eq {(N) show} if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1380 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1381 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1382 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1383 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1384 "\/ShowRightEnd { \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1385 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1386 " SetStringFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1387 " rightEndDeltaX rightEndDeltaY moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1388 " logoType (NA) eq {(3) show ShowPrime} if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1389 " logoType (AA) eq {(C) show} if\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1390 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1391 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1392 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1393 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1394 "\/ShowPrime {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1395 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1396 " SetPrimeFont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1397 " (\\242) show \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1398 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1399 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1400 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1401 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1402 "\/SetColor{ % <char> SetColor\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1403 " dup colorDict exch known {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1404 " colorDict exch get aload pop setrgbcolor\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1405 " } {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1406 " pop\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1407 " defaultColor aload pop setrgbcolor\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1408 " } ifelse \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1409 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1410 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1411 "% define fonts\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1412 "\/SetTitleFont {\/Times-Bold findfont titleFontsize scalefont setfont} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1413 "\/SetLogoFont {\/Helvetica-Bold findfont charWidth scalefont setfont} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1414 "\/SetStringFont{\/Helvetica-Bold findfont fontsize scalefont setfont} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1415 "\/SetPrimeFont {\/Symbol findfont fontsize scalefont setfont} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1416 "\/SetSmallFont {\/Helvetica findfont smallFontsize scalefont setfont} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1417 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1418 "\/SetNumberFont {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1419 " \/Helvetica-Bold findfont \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1420 " numberFontsize\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1421 " scalefont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1422 " setfont\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1423 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1424 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1425 "%Take a single character and return the bounding box\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1426 "\/CharBox { % <char> CharBox <lx> <ly> <ux> <uy>\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1427 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1428 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1429 " 0 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1430 " % take the character off the stack and use it here:\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1431 " true charpath \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1432 " flattenpath \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1433 " pathbbox % compute bounding box of 1 pt. char => lx ly ux uy\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1434 " % the path is here, but toss it away ...\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1435 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1436 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1437 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1438 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1439 "% The height of a characters bounding box\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1440 "\/CharBoxHeight { % <char> CharBoxHeight <num>\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1441 " CharBox\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1442 " exch pop sub neg exch pop\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1443 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1444 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1445 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1446 "% The width of a characters bounding box\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1447 "\/CharBoxWidth { % <char> CharBoxHeight <num>\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1448 " CharBox\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1449 " pop exch pop sub neg \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1450 "} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1451 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1452 "% Set the colour scheme to be faded to indicate trimming\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1453 "\/MuteColour {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1454 " \/colorDict mutedColourDict def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1455 "} def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1456 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1457 "% Restore the colour scheme to the normal colours\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1458 "\/RestoreColour {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1459 " \/colorDict fullColourDict def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1460 "} def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1461 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1462 "% Draw the background for a trimmed section\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1463 "% takes the number of columns as a parameter\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1464 "\/DrawTrimBg { % <num> DrawTrimBox\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1465 " \/col exch def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1466 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1467 " \/boxwidth \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1468 " col stackWidth mul \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1469 " def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1470 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1471 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1472 " 0.97 setgray\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1473 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1474 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1475 " 0 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1476 " boxwidth 0 rlineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1477 " 0 yaxisHeight rlineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1478 " 0 yaxisHeight lineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1479 " closepath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1480 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1481 " fill\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1482 " grestore\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1483 "} def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1484 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1485 "\/DrawTrimEdge {\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1486 " gsave\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1487 " 0.2 setgray\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1488 " [2] 0 setdash\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1489 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1490 " newpath\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1491 " 0 0 moveto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1492 " 0 yaxisHeight lineto\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1493 " \n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1494 " stroke\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1495 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1496 "} def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1497 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1498 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1499 "% Deprecated names\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1500 "\/startstack {StartStack} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1501 "\/endstack {EndStack} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1502 "\/makenumber {MakeNumber} bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1503 "\/numchar { MakeSymbol } bind def\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1504 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1505 "%%EndProlog\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1506 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1507 "%%Page: 1 1\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1508 "StartLogo\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1509 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1510 _input("DATA") + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1511 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1512 "EndLogo\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1513 "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1514 "%%EOF\n" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1515 ); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1516 }</script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1517 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1518 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1519 // start Alphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1520 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1521 var Alphabet = function(alphabet, background) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1522 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1523 var i, j, sym, aliases, complement, comp_e_sym, ambigs, generate_background; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1524 generate_background = (background == null); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1525 if (generate_background) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1526 background = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1527 for (i = 0; i < alphabet.ncore; i++) background[i] = 1.0 / alphabet.ncore; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1528 } else if (alphabet.ncore != background.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1529 throw new Error("The background length does not match the alphabet length."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1530 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1531 this.name = alphabet.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1532 this.like = (alphabet.like != null ? alphabet.like.toUpperCase() : null); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1533 this.ncore = alphabet.ncore; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1534 this.symbols = alphabet.symbols; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1535 this.background = background; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1536 this.genbg = generate_background; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1537 this.encode = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1538 this.encode2core = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1539 this.complement = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1540 // check if all symbols are same case |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1541 var seen_uc = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1542 var seen_lc = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1543 var check_case = function (syms) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1544 var s, sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1545 if (typeof syms === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1546 for (s = 0; s < syms.length; s++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1547 sym = syms.charAt(s); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1548 if (sym >= 'a' && sym <= 'z') seen_lc = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1549 else if (sym >= 'A' && sym <= 'Z') seen_uc = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1550 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1551 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1552 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1553 for (i = 0; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1554 check_case(this.symbols[i].symbol); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1555 check_case(this.symbols[i].aliases); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1556 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1557 // now map symbols to indexes |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1558 var update_array = function(array, syms, index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1559 var s, sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1560 if (typeof syms === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1561 for (s = 0; s < syms.length; s++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1562 sym = syms.charAt(s); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1563 array[sym] = index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1564 // when only a single case is used, then encode as case insensitive |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1565 if (seen_uc != seen_lc) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1566 if (sym >= 'a' && sym <= 'z') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1567 array[sym.toUpperCase()] = index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1568 } else if (sym >= 'A' && sym <= 'Z') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1569 array[sym.toLowerCase()] = index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1570 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1571 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1572 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1573 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1574 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1575 // map core symbols to index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1576 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1577 update_array(this.encode2core, this.symbols[i].symbol, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1578 update_array(this.encode, this.symbols[i].symbol, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1579 update_array(this.encode2core, this.symbols[i].aliases, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1580 update_array(this.encode, this.symbols[i].aliases, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1581 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1582 // map ambigous symbols to index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1583 ambigs = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1584 for (i = this.ncore; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1585 update_array(this.encode, this.symbols[i].symbol, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1586 update_array(this.encode, this.symbols[i].aliases, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1587 ambigs[this.symbols[i].equals] = i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1588 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1589 // determine complements |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1590 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1591 complement = this.symbols[i].complement; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1592 if (typeof complement === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1593 this.complement[i] = this.encode2core[complement]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1594 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1595 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1596 next_symbol: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1597 for (i = this.ncore; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1598 complement = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1599 for (j = 0; j < this.symbols[i].equals.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1600 comp_e_sym = this.complement[this.encode2core[this.symbols[i].equals.charAt(j)]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1601 if (typeof comp_e_sym !== "number") continue next_symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1602 complement += this.symbols[comp_e_sym].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1603 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1604 complement = complement.split("").sort().join(""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1605 if (typeof ambigs[complement] === "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1606 this.complement[i] = ambigs[complement]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1607 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1608 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1609 // determine case insensitivity |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1610 this.case_insensitive = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1611 if (seen_uc == seen_lc) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1612 // when there is a mixture of cases it probably won't |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1613 // be case insensitive but we still need to check |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1614 loop: |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1615 for (i = 0; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1616 sym = this.symbols[i].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1617 if (sym >= 'A' && sym <= 'Z') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1618 if (this.encode[sym.toLowerCase()] != i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1619 this.case_insensitive = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1620 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1621 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1622 } else if (sym >= 'a' && sym <= 'z') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1623 if (this.encode[sym.toUpperCase()] != i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1624 this.case_insensitive = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1625 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1626 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1627 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1628 aliases = this.symbols[i].aliases; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1629 if (aliases != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1630 for (j = 0; j < aliases.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1631 sym = aliases.charAt(j); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1632 if (sym >= 'A' && sym <= 'Z') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1633 if (this.encode[sym.toLowerCase()] != i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1634 this.case_insensitive = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1635 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1636 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1637 } else if (sym >= 'a' && sym <= 'z') { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1638 if (this.encode[sym.toUpperCase()] != i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1639 this.case_insensitive = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1640 break loop; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1641 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1642 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1643 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1644 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1645 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1646 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1647 // normalise aliases to remove the prime symbol and eliminate |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1648 // the alternate cases when the alphabet is case insensitive |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1649 var seen, out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1650 for (i = 0; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1651 sym = this.symbols[i].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1652 aliases = this.symbols[i].aliases; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1653 if (typeof aliases != "string") aliases = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1654 seen = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1655 out = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1656 if (this.case_insensitive) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1657 sym = sym.toUpperCase(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1658 aliases = aliases.toUpperCase(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1659 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1660 seen[sym] = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1661 for (j = 0; j < aliases.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1662 if (!seen[aliases.charAt(j)]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1663 seen[aliases.charAt(j)] = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1664 out.push(aliases.charAt(j)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1665 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1666 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1667 this.symbols[i].aliases = out.sort().join(""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1668 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1669 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1670 // return the name of the alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1671 Alphabet.prototype.get_alphabet_name = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1672 return this.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1673 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1674 // return if the alphabet can be complemented |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1675 Alphabet.prototype.has_complement = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1676 return (typeof this.symbols[0].complement === "string"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1677 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1678 // return true if an uppercase letter has the same meaning as the lowercase form |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1679 Alphabet.prototype.is_case_insensitive = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1680 return this.case_insensitive; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1681 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1682 // return the information content of an alphabet letter |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1683 Alphabet.prototype.get_ic = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1684 return Math.log(this.ncore) / Math.LN2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1685 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1686 // return the count of the core alphabet symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1687 Alphabet.prototype.get_size_core = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1688 return this.ncore; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1689 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1690 // return the count of all alphabet symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1691 Alphabet.prototype.get_size_full = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1692 return this.symbols.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1693 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1694 // return the symbol for the given alphabet index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1695 Alphabet.prototype.get_symbol = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1696 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1697 if (alph_index < 0 || alph_index >= this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1698 throw new Error("Alphabet index out of bounds"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1699 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1700 return this.symbols[alph_index].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1701 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1702 // return the aliases for the given alphabet index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1703 Alphabet.prototype.get_aliases = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1704 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1705 if (alph_index < 0 || alph_index >= this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1706 throw new Error("Alphabet index out of bounds"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1707 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1708 var sym_obj = this.symbols[alph_index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1709 return (sym_obj.aliases != null ? sym_obj.aliases : ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1710 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1711 // return the name for the given alphabet index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1712 Alphabet.prototype.get_name = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1713 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1714 var sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1715 if (alph_index < 0 || alph_index >= this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1716 throw new Error("Alphabet index out of bounds"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1717 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1718 sym = this.symbols[alph_index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1719 return (typeof sym.name === "string" ? sym.name : sym.symbol); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1720 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1721 // return the alphabet it is like or null |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1722 Alphabet.prototype.get_like = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1723 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1724 return this.like; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1725 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1726 // return the index of the complement for the given alphabet index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1727 Alphabet.prototype.get_complement = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1728 var comp_e_sym = this.complement[alph_index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1729 if (typeof comp_e_sym === "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1730 return comp_e_sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1731 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1732 return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1733 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1734 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1735 // return a string containing the core symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1736 Alphabet.prototype.get_symbols = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1737 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1738 var i, core_symbols; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1739 core_symbols = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1740 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1741 core_symbols += this.symbols[i].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1742 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1743 return core_symbols; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1744 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1745 // return if the background was not a uniform generated background |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1746 Alphabet.prototype.has_bg = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1747 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1748 return !this.genbg; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1749 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1750 // get the background frequency for the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1751 Alphabet.prototype.get_bg_freq = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1752 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1753 var freq, i, symbols; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1754 if (alph_index >= 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1755 if (alph_index < this.ncore) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1756 return this.background[alph_index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1757 } else if (alph_index < this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1758 freq = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1759 symbols = this.symbols[alph_index].equals; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1760 for (i = 0; i < symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1761 freq += this.background[this.encode2core[symbols.charAt(i)]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1762 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1763 return freq; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1764 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1765 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1766 throw new Error("The alphabet index is out of range."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1767 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1768 // get the colour of the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1769 Alphabet.prototype.get_colour = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1770 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1771 if (alph_index < 0 || alph_index >= this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1772 throw new Error("BAD_ALPHABET_INDEX"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1773 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1774 if (typeof this.symbols[alph_index].colour != "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1775 return "black"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1776 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1777 return "#" + this.symbols[alph_index].colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1778 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1779 // get the rgb componets of the colour at the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1780 Alphabet.prototype.get_rgb = function(alph_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1781 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1782 if (alph_index < 0 || alph_index >= this.symbols.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1783 throw new Error("BAD_ALPHABET_INDEX"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1784 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1785 if (typeof this.symbols[alph_index].colour != "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1786 return {"red": 0, "green": 0, "blue": 0}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1787 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1788 var colour = this.symbols[alph_index].colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1789 var red = parseInt(colour.substr(0, 2), 16) / 255; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1790 var green = parseInt(colour.substr(2, 2), 16) / 255; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1791 var blue = parseInt(colour.substr(4, 2), 16) / 255; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1792 return {"red": red, "green": green, "blue": blue}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1793 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1794 // convert a symbol into the index |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1795 Alphabet.prototype.get_index = function(letter) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1796 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1797 var alph_index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1798 alph_index = this.encode[letter]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1799 if (typeof alph_index === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1800 return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1801 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1802 return alph_index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1803 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1804 // convert a symbol into the list of core indexes that it equals |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1805 Alphabet.prototype.get_indexes = function(letter) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1806 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1807 var alph_index, comprise_str, i, comprise_list; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1808 alph_index = this.encode[letter]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1809 if (typeof alph_index === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1810 throw new Error("Unknown letter"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1811 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1812 comprise_str = this.symbols[alph_index].equals; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1813 comprise_list = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1814 if (typeof comprise_str == "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1815 for (i = 0; i < comprise_str.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1816 comprise_list.push(this.encode2core[comprise_str.charAt(i)]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1817 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1818 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1819 comprise_list.push(alph_index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1820 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1821 return comprise_list; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1822 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1823 // check if a symbol is the primary way of representing the symbol in the alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1824 Alphabet.prototype.is_prime_symbol = function(letter) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1825 var alph_index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1826 alph_index = this.encode[letter]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1827 if (alph_index == null) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1828 if (this.is_case_insensitive()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1829 return (this.symbols[alph_index].symbol.toUpperCase() == letter.toUpperCase()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1830 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1831 return (this.symbols[alph_index].symbol == letter); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1832 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1833 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1834 // compare 2 alphabets |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1835 Alphabet.prototype.equals = function(other) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1836 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1837 var i, sym1, sym2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1838 // first check that it's actually an alphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1839 if (!(typeof other === "object" && other != null && other instanceof Alphabet)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1840 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1841 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1842 // second shortcircuit if it's the same object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1843 if (this === other) return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1844 // compare |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1845 if (this.name !== other.name) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1846 if (this.ncore !== other.ncore) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1847 if (this.symbols.length !== other.symbols.length) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1848 for (i = 0; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1849 sym1 = this.symbols[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1850 sym2 = other.symbols[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1851 if (sym1.symbol !== sym2.symbol) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1852 if (sym1.aliases !== sym2.aliases) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1853 if (sym1.name !== sym2.name) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1854 if (typeof sym1.colour !== typeof sym2.colour || |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1855 (typeof sym1.colour === "string" && typeof sym2.colour === "string" && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1856 parseInt(sym1.colour, 16) != parseInt(sym2.colour, 16))) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1857 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1858 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1859 if (sym1.complement !== sym2.complement) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1860 if (sym1.equals !== sym2.equals) return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1861 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1862 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1863 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1864 Alphabet.prototype.check_core_subset = function(super_alph) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1865 var complement_same = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1866 var seen_set = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1867 var sub_i, sub_symbol, super_i, super_symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1868 for (sub_i = 0; sub_i < this.ncore; sub_i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1869 sub_symbol = this.symbols[sub_i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1870 super_i = super_alph.encode[sub_symbol.symbol]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1871 if (super_i == null) return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1872 super_symbol = super_alph.symbols[super_i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1873 if (seen_set[super_i]) return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1874 seen_set[super_i] = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1875 // check complement |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1876 if (sub_symbol.complement != null && super_symbol.complement != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1877 if (super_alph.encode[sub_symbol.complement] != super_alph.encode[super_symbol.complement]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1878 complement_same = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1879 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1880 } else if (sub_symbol.complement != null || super_symbol.complement != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1881 complement_same = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1882 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1883 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1884 return (complement_same ? 1 : -1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1885 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1886 // convert a sequence to its reverse complement |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1887 Alphabet.prototype.invcomp_seq = function(seq) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1888 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1889 var syms, i, e_sym, comp_e_sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1890 if (!this.has_complement()) throw new Error("Alphabet must be complementable"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1891 syms = seq.split(""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1892 for (i = 0; i < syms.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1893 e_sym = this.encode[syms[i]]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1894 if (typeof e_sym === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1895 e_sym = this.ncore; // wildcard |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1896 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1897 comp_e_sym = this.complement[e_sym]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1898 if (typeof comp_e_sym === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1899 comp_e_sym = e_sym; // not complementable |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1900 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1901 syms[i] = this.symbols[comp_e_sym].symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1902 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1903 return syms.reverse().join(""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1904 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1905 // convert the alphabet to the text version |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1906 Alphabet.prototype.as_text = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1907 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1908 function name_as_text(name) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1909 var i, c, out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1910 out = "\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1911 for (i = 0; i < name.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1912 c = name.charAt(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1913 if (c == "\"") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1914 out += "\\\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1915 } else if (c == "/") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1916 out += "\\/"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1917 } else if (c == "\\") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1918 out += "\\\\"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1919 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1920 out += c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1921 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1922 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1923 out += "\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1924 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1925 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1926 function symbol_as_text(sym) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1927 var out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1928 out = sym.symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1929 if (typeof sym.name === "string" && sym.name != sym.symbol) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1930 out += " " + name_as_text(sym.name); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1931 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1932 if (typeof sym.colour === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1933 out += " " + sym.colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1934 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1935 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1936 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1937 var out, i, j, c, sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1938 out = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1939 // output core symbols with 2 way complements |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1940 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1941 c = this.complement[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1942 if (typeof c === "number" && i < c && this.complement[c] === i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1943 out += symbol_as_text(this.symbols[i]) + " ~ " + symbol_as_text(this.symbols[c]) + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1944 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1945 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1946 // output core symbols with no complement |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1947 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1948 if (typeof this.complement[i] === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1949 out += symbol_as_text(this.symbols[i]) + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1950 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1951 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1952 // output ambiguous symbols that have comprising characters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1953 for (i = this.ncore; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1954 if (this.symbols[i].equals.length == 0) break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1955 out += symbol_as_text(this.symbols[i]) + " = " + this.symbols[i].equals + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1956 if (typeof this.symbols[i].aliases === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1957 for (j = 0; j < this.symbols[i].aliases.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1958 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1959 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].equals + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1960 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1961 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1962 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1963 // output aliases of core symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1964 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1965 if (typeof this.symbols[i].aliases === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1966 for (j = 0; j < this.symbols[i].aliases.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1967 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1968 out += this.symbols[i].aliases.charAt(j) + " = " + this.symbols[i].symbol + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1969 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1970 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1971 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1972 // output gap symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1973 i = this.symbols.length - 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1974 if (this.symbols[i].equals.length == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1975 out += symbol_as_text(this.symbols[i]) + " =\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1976 if (typeof this.symbols[i].aliases === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1977 for (j = 0; j < this.symbols[i].aliases.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1978 if (this.symbols[i].aliases.charAt(j) == this.symbols[i].symbol) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1979 out += this.symbols[i].aliases.charAt(j) + " =\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1980 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1981 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1982 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1983 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1984 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1985 // output the alphabet as it appears in minimal MEME format |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1986 Alphabet.prototype.as_meme = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1987 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1988 function name_as_text(name) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1989 var i, c, out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1990 out = "\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1991 for (i = 0; i < name.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1992 c = name.charAt(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1993 if (c == "\"") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1994 out += "\\\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1995 } else if (c == "/") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1996 out += "\\/"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1997 } else if (c == "\\") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1998 out += "\\\\"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
1999 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2000 out += c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2001 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2002 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2003 out += "\""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2004 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2005 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2006 if (this.equals(AlphStd.DNA)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2007 return "ALPHABET= ACGT\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2008 } else if (this.equals(AlphStd.PROTEIN)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2009 return "ALPHABET= ACDEFGHIKLMNPQRSTVWY\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2010 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2011 return "ALPHABET" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2012 (this.name != null ? " " + name_as_text(this.name) : "") + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2013 (this.like != null ? " " + this.like + "-LIKE" : "") + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2014 this.as_text() + "END ALPHABET\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2015 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2016 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2017 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2018 // Returns a table showing all the letters in the alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2019 Alphabet.prototype.as_table = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2020 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2021 var i, j, row, th, td, aliases, equals, sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2022 var table = document.createElement("table"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2023 // create the core symbol header |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2024 row = table.insertRow(table.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2025 th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2026 th.appendChild(document.createTextNode("Symbol(s)")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2027 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2028 th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2029 th.appendChild(document.createTextNode("Name")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2030 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2031 th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2032 if (this.has_complement()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2033 th.appendChild(document.createTextNode("Complement")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2034 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2035 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2036 // list the core symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2037 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2038 row = table.insertRow(table.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2039 td = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2040 if (this.symbols[i].colour != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2041 td.style.color = '#' + this.symbols[i].colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2042 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2043 td.appendChild(document.createTextNode(this.symbols[i].symbol)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2044 aliases = this.get_aliases(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2045 if (aliases.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2046 td.appendChild(document.createTextNode(' ' + aliases.split('').join(' '))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2047 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2048 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2049 td = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2050 if (this.symbols[i].name != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2051 td.appendChild(document.createTextNode(this.symbols[i].name)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2052 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2053 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2054 td = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2055 if (this.symbols[i].complement != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2056 td.style.color = this.get_colour(this.get_index(this.symbols[i].complement)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2057 td.appendChild(document.createTextNode(this.symbols[i].complement)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2058 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2059 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2060 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2061 // create the ambiguous symbol header |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2062 row = table.insertRow(table.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2063 th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2064 th.appendChild(document.createTextNode("Symbol(s)")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2065 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2066 th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2067 th.appendChild(document.createTextNode("Name")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2068 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2069 th = document.createElement("th"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2070 th.appendChild(document.createTextNode("Matches")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2071 row.appendChild(th); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2072 // list the ambiguous symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2073 for (i = this.ncore; i < this.symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2074 row = table.insertRow(table.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2075 td = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2076 if (this.symbols[i].colour != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2077 td.style.color = '#' + this.symbols[i].colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2078 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2079 td.appendChild(document.createTextNode(this.symbols[i].symbol)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2080 aliases = this.get_aliases(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2081 if (aliases.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2082 td.appendChild(document.createTextNode(' ' + aliases.split('').join(' '))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2083 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2084 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2085 td = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2086 if (this.symbols[i].name != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2087 td.appendChild(document.createTextNode(this.symbols[i].name)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2088 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2089 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2090 td = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2091 equals = this.symbols[i].equals.split(''); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2092 for (j = 0; j < equals.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2093 if (j != 0) td.appendChild(document.createTextNode(' ')); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2094 sym = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2095 sym.style.color = this.get_colour(this.get_index(equals[j])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2096 sym.appendChild(document.createTextNode(equals[j])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2097 td.appendChild(sym); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2098 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2099 row.appendChild(td); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2100 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2101 return table; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2102 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2103 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2104 // returns a dictionary of the colours for EPS |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2105 Alphabet.prototype._as_eps_dict = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2106 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2107 var i, sym, rgb; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2108 var out = "/fullColourDict <<\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2109 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2110 sym = this.get_symbol(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2111 sym = sym.replace(/\\/g, "\\\\"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2112 sym = sym.replace(/\(/g, "\\("); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2113 sym = sym.replace(/\)/g, "\\)"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2114 rgb = this.get_rgb(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2115 out += " (" + sym + ") [" + rgb.red.toFixed(4) + " " + rgb.green.toFixed(4) + " " + rgb.blue.toFixed(4) + "]\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2116 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2117 out += ">> def\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2118 out += "/mutedColourDict <<\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2119 for (i = 0; i < this.ncore; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2120 sym = this.get_symbol(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2121 sym = sym.replace(/\\/g, "\\\\"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2122 sym = sym.replace(/\(/g, "\\("); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2123 sym = sym.replace(/\)/g, "\\)"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2124 rgb = Alphabet.lighten_colour(this.get_rgb(i)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2125 out += " (" + sym + ") [" + rgb.red.toFixed(4) + " " + rgb.green.toFixed(4) + " " + rgb.blue.toFixed(4) + "]\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2126 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2127 out += ">> def\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2128 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2129 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2130 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2131 // return the alphabet name or a list of primary symbols |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2132 Alphabet.prototype.toString = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2133 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2134 if (this.name != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2135 return this.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2136 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2137 return this.get_symbols(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2138 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2139 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2140 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2141 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2142 // Helper functions |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2143 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2144 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2145 // Convert a colour specified in RGB colourspace values into LAB colourspace |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2146 Alphabet.rgb2lab = function(rgb) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2147 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2148 var xyzHelper, labHelper; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2149 // XYZ helper |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2150 xyzHelper = function(value) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2151 if (value > 0.0445) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2152 value = (value + 0.055) / 1.055; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2153 value = Math.pow(value, 2.4); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2154 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2155 value /= 12.92; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2156 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2157 value *= 100; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2158 return value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2159 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2160 // lab helper |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2161 labHelper = function(value) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2162 if (value > 0.008856) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2163 value = Math.pow(value, 1.0 / 3.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2164 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2165 value = (7.787 * value) + (16.0 / 116.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2166 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2167 return value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2168 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2169 // convert into XYZ colourspace |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2170 var c1, c2, c3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2171 if (typeof rgb == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2172 c1 = xyzHelper(((rgb >> 16) & 0xFF) / 255.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2173 c2 = xyzHelper(((rgb >> 8) & 0xFF) / 255.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2174 c3 = xyzHelper((rgb & 0xFF) / 255.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2175 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2176 c1 = xyzHelper(rgb.red); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2177 c2 = xyzHelper(rgb.green); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2178 c3 = xyzHelper(rgb.blue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2179 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2180 var x = (c1 * 0.4124) + (c2 * 0.3576) + (c3 * 0.1805); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2181 var y = (c1 * 0.2126) + (c2 * 0.7152) + (c3 * 0.0722); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2182 var z = (c1 * 0.0193) + (c2 * 0.1192) + (c3 * 0.9505); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2183 // convert into Lab colourspace |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2184 c1 = labHelper(x / 95.047); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2185 c2 = labHelper(y / 100.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2186 c3 = labHelper(z / 108.883); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2187 var l = (116.0 * c2) - 16; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2188 var a = 500.0 * (c1 - c2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2189 var b = 200.0 * (c2 - c3); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2190 return {"l": l, "a": a, "b": b}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2191 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2192 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2193 // Convert a colour specified in HSV colourspace into RGB colourspace |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2194 Alphabet.hsv2rgb = function(hue, sat, value, output_object) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2195 // achromatic (grey) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2196 var r = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2197 var g = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2198 var b = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2199 if (sat != 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2200 var h = hue / 60.0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2201 var i = Math.floor(h); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2202 var f = h - i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2203 var p = value * (1.0 - sat); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2204 var q = value * (1.0 - (sat * f)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2205 var t = value * (1.0 - (sat * (1.0 - f))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2206 if (i == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2207 r = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2208 g = t; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2209 b = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2210 } else if (i == 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2211 r = q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2212 g = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2213 b = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2214 } else if (i == 2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2215 r = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2216 g = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2217 b = t; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2218 } else if (i == 3) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2219 r = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2220 g = q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2221 b = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2222 } else if (i == 4) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2223 r = t; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2224 g = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2225 b = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2226 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2227 r = value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2228 g = p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2229 b = q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2230 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2231 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2232 if (output_object) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2233 return {"red": r, "green": g, "blue": b}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2234 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2235 return (Math.floor(r * 255) << 15) | (Math.floor(g * 255) << 8) | (Math.floor(b * 255)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2236 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2237 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2238 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2239 // Calculate a distance score between two colours in LAB colourspace |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2240 Alphabet.lab_dist = function(lab1, lab2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2241 var c1 = Math.sqrt((lab1.l * lab1.l) + (lab1.a * lab1.a)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2242 var c2 = Math.sqrt((lab2.l * lab2.l) + (lab2.a * lab2.a)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2243 var dc = c1 - c2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2244 var dl = lab1.l - lab2.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2245 var da = lab1.a - lab2.a; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2246 var db = lab1.b - lab2.b; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2247 // we don't want NaN due to rounding errors so fudge things a bit... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2248 var dh = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2249 var dh_squared = (da * da) + (db * db) - (dc * dc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2250 if (dh_squared > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2251 dh = Math.sqrt(dh_squared); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2252 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2253 var first = dl; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2254 var second = dc / (1.0 + (0.045 * c1)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2255 var third = dh / (1.0 + (0.015 * c1)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2256 return Math.sqrt((first * first) + (second * second) + (third * third)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2257 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2258 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2259 // convert an RGB value into a HSL value |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2260 Alphabet.rgb2hsl = function(rgb) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2261 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2262 var min, max, delta, h, s, l, r, g, b; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2263 if (typeof rgb == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2264 r = ((rgb >> 16) & 0xFF) / 255.0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2265 g = ((rgb >> 8) & 0xFF) / 255.0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2266 b = (rgb & 0xFF) / 255.0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2267 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2268 r = rgb.red; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2269 g = rgb.green; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2270 b = rgb.blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2271 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2272 min = Math.min(r, g, b); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2273 max = Math.max(r, g, b); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2274 delta = max - min; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2275 l = min + (delta / 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2276 if (max == min) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2277 h = 0; // achromatic (grayscale) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2278 s = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2279 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2280 if (l > 0.5) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2281 s = delta / (2 - max - min); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2282 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2283 s = delta / (max + min); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2284 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2285 if (max == r) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2286 h = (g - b) / delta; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2287 if (g < b) h += 6; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2288 } else if (max == g) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2289 h = ((b - r) / delta) + 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2290 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2291 h = ((r - g) / delta) + 4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2292 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2293 h /= 6; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2294 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2295 return {"h": h, "s": s, "l": l}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2296 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2297 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2298 // convert a HSL value into an RGB value |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2299 Alphabet.hsl2rgb = function(hsl, output_object) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2300 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2301 function _hue(p, q, t) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2302 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2303 if (t < 0) t += 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2304 else if (t > 1) t -= 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2305 if (t < (1.0 / 6.0)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2306 return p + ((q - p) * 6.0 * t); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2307 } else if (t < 0.5) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2308 return q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2309 } else if (t < (2.0 / 3.0)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2310 return p + ((q - p) * ((2.0 / 3.0) - t) * 6.0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2311 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2312 return p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2313 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2314 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2315 var r, g, b, p, q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2316 if (hsl.s == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2317 // achromatic (grayscale) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2318 r = hsl.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2319 g = hsl.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2320 b = hsl.l; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2321 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2322 if (hsl.l < 0.5) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2323 q = hsl.l * (1 + hsl.s); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2324 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2325 q = hsl.l + hsl.s - (hsl.l * hsl.s); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2326 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2327 p = (2 * hsl.l) - q; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2328 r = _hue(p, q, hsl.h + (1.0 / 3.0)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2329 g = _hue(p, q, hsl.h); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2330 b = _hue(p, q, hsl.h - (1.0 / 3.0)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2331 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2332 if (output_object) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2333 return {"red": r, "green": g, "blue": b}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2334 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2335 return (Math.floor(r * 255) << 15) | (Math.floor(g * 255) << 8) | (Math.floor(b * 255)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2336 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2337 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2338 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2339 Alphabet.lighten_colour = function(rgb) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2340 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2341 var hsl = Alphabet.rgb2hsl(rgb); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2342 hsl.l += (1.0 - hsl.l) * 2 / 3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2343 return Alphabet.hsl2rgb(hsl, typeof rgb != "number"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2344 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2345 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2346 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2347 // end Alphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2348 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2349 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2350 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2351 // start StandardAlphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2352 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2353 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2354 // an extension of the alphabet object to support some additional fields |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2355 // only present in standard alphabets. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2356 var StandardAlphabet = function(enum_code, enum_name, alphabet_data) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2357 Alphabet.apply(this, [alphabet_data]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2358 this.enum_code = enum_code; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2359 this.enum_name = enum_name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2360 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2361 StandardAlphabet.prototype = Alphabet.prototype; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2362 StandardAlphabet.prototype.constructor = StandardAlphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2363 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2364 // A unique code for this standard alphabet. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2365 // This code will be a power of 2 to enable creation of bitsets for |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2366 // a selection of standard alphabets. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2367 StandardAlphabet.prototype.get_code = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2368 return this.enum_code; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2369 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2370 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2371 // A unique name for this standard alphabet. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2372 // this name will be all upper case and the same as the property that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2373 // refers to this alphabet in the AlphStd collection. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2374 StandardAlphabet.prototype.get_enum = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2375 return this.enum_name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2376 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2377 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2378 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2379 // end StandardAlphabet object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2380 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2381 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2382 // A collection of standard alphabets. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2383 var AlphStd = { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2384 RNA: new StandardAlphabet(1, "RNA", { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2385 "name": "RNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2386 "like": "RNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2387 "ncore": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2388 "symbols": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2389 {"symbol": "A", "name": "Adenine", "colour": "CC0000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2390 {"symbol": "C", "name": "Cytosine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2391 {"symbol": "G", "name": "Guanine", "colour": "FFB300"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2392 {"symbol": "U", "name": "Uracil", "colour": "008000", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2393 "aliases": "T"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2394 {"symbol": "N", "name": "Any base", "equals": "ACGU", "aliases": "X."}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2395 {"symbol": "V", "name": "Not U", "equals": "ACG"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2396 {"symbol": "H", "name": "Not G", "equals": "ACU"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2397 {"symbol": "D", "name": "Not C", "equals": "AGU"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2398 {"symbol": "B", "name": "Not A", "equals": "CGU"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2399 {"symbol": "M", "name": "Amino", "equals": "AC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2400 {"symbol": "R", "name": "Purine", "equals": "AG"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2401 {"symbol": "W", "name": "Weak", "equals": "AU"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2402 {"symbol": "S", "name": "Strong", "equals": "CG"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2403 {"symbol": "Y", "name": "Pyrimidine", "equals": "CU"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2404 {"symbol": "K", "name": "Keto", "equals": "GU"} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2405 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2406 }), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2407 DNA: new StandardAlphabet(2, "DNA", { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2408 "name": "DNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2409 "like": "DNA", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2410 "ncore": 4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2411 "symbols": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2412 {"symbol": "A", "name": "Adenine", "colour": "CC0000", "complement": "T"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2413 {"symbol": "C", "name": "Cytosine", "colour": "0000CC", "complement": "G"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2414 {"symbol": "G", "name": "Guanine", "colour": "FFB300", "complement": "C"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2415 {"symbol": "T", "name": "Thymine", "colour": "008000", "complement": "A", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2416 "aliases": "U"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2417 {"symbol": "N", "name": "Any base", "equals": "ACGT", "aliases": "X."}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2418 {"symbol": "V", "name": "Not T", "equals": "ACG"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2419 {"symbol": "H", "name": "Not G", "equals": "ACT"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2420 {"symbol": "D", "name": "Not C", "equals": "AGT"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2421 {"symbol": "B", "name": "Not A", "equals": "CGT"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2422 {"symbol": "M", "name": "Amino", "equals": "AC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2423 {"symbol": "R", "name": "Purine", "equals": "AG"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2424 {"symbol": "W", "name": "Weak", "equals": "AT"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2425 {"symbol": "S", "name": "Strong", "equals": "CG"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2426 {"symbol": "Y", "name": "Pyrimidine", "equals": "CT"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2427 {"symbol": "K", "name": "Keto", "equals": "GT"} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2428 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2429 }), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2430 PROTEIN: new StandardAlphabet(4, "PROTEIN", { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2431 "name": "Protein", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2432 "like": "PROTEIN", |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2433 "ncore": 20, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2434 "symbols": [ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2435 {"symbol": "A", "name": "Alanine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2436 {"symbol": "C", "name": "Cysteine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2437 {"symbol": "D", "name": "Aspartic acid", "colour": "FF00FF"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2438 {"symbol": "E", "name": "Glutamic acid", "colour": "FF00FF"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2439 {"symbol": "F", "name": "Phenylalanine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2440 {"symbol": "G", "name": "Glycine", "colour": "FFB300"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2441 {"symbol": "H", "name": "Histidine", "colour": "FFCCCC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2442 {"symbol": "I", "name": "Isoleucine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2443 {"symbol": "K", "name": "Lysine", "colour": "CC0000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2444 {"symbol": "L", "name": "Leucine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2445 {"symbol": "M", "name": "Methionine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2446 {"symbol": "N", "name": "Asparagine", "colour": "008000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2447 {"symbol": "P", "name": "Proline", "colour": "FFFF00"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2448 {"symbol": "Q", "name": "Glutamine", "colour": "008000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2449 {"symbol": "R", "name": "Arginine", "colour": "CC0000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2450 {"symbol": "S", "name": "Serine", "colour": "008000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2451 {"symbol": "T", "name": "Threonine", "colour": "008000"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2452 {"symbol": "V", "name": "Valine", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2453 {"symbol": "W", "name": "Tryptophan", "colour": "0000CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2454 {"symbol": "Y", "name": "Tyrosine", "colour": "33E6CC"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2455 {"symbol": "X", "name": "Any amino acid", "equals": "ACDEFGHIKLMNPQRSTVWY", "aliases": "*."}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2456 {"symbol": "B", "name": "Asparagine or Aspartic acid", "equals": "DN"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2457 {"symbol": "Z", "name": "Glutamine or Glutamic acid", "equals": "EQ"}, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2458 {"symbol": "J", "name": "Leucine or Isoleucine", "equals": "IL"} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2459 ] |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2460 }) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2461 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2462 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2463 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2464 // start Symbol object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2465 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2466 var Symbol = function(alph_index, scale, alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2467 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2468 //variable prototype |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2469 this.symbol = alphabet.get_symbol(alph_index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2470 this.scale = scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2471 this.colour = alphabet.get_colour(alph_index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2472 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2473 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2474 Symbol.prototype.get_symbol = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2475 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2476 return this.symbol; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2477 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2478 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2479 Symbol.prototype.get_scale = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2480 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2481 return this.scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2482 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2483 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2484 Symbol.prototype.get_colour = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2485 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2486 return this.colour; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2487 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2488 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2489 Symbol.prototype.toString = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2490 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2491 return this.symbol + " " + (Math.round(this.scale*1000)/10) + "%"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2492 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2493 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2494 function compare_symbol(sym1, sym2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2495 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2496 if (sym1.get_scale() < sym2.get_scale()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2497 return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2498 } else if (sym1.get_scale() > sym2.get_scale()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2499 return 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2500 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2501 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2502 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2503 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2504 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2505 // end Symbol object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2506 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2507 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2508 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2509 // start Pspm object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2510 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2511 var Pspm = function(matrix, name, ltrim, rtrim, nsites, evalue, pssm, alt) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2512 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2513 var row, col, data, row_sum, delta, evalue_re; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2514 if (typeof name !== "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2515 name = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2516 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2517 this.name = name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2518 //construct |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2519 if (matrix instanceof Pspm) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2520 // copy constructor |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2521 this.alph_length = matrix.alph_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2522 this.motif_length = matrix.motif_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2523 this.name = matrix.name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2524 this.alt = matrix.alt; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2525 this.nsites = matrix.nsites; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2526 this.evalue = matrix.evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2527 this.ltrim = matrix.ltrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2528 this.rtrim = matrix.rtrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2529 this.pspm = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2530 for (row = 0; row < matrix.motif_length; row++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2531 this.pspm[row] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2532 for (col = 0; col < matrix.alph_length; col++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2533 this.pspm[row][col] = matrix.pspm[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2534 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2535 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2536 if (matrix.pssm != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2537 this.pssm = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2538 for (row = 0; row < matrix.motif_length; row++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2539 this.pspm[row] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2540 for (col = 0; col < matrix.alph_length; col++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2541 this.pssm[row][col] = matrix.pssm[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2542 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2543 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2544 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2545 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2546 // check parameters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2547 if (ltrim == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2548 ltrim = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2549 } else if (typeof ltrim !== "number" || ltrim % 1 !== 0 || ltrim < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2550 throw new Error("ltrim must be a non-negative integer, got: " + ltrim); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2551 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2552 if (rtrim == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2553 rtrim = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2554 } else if (typeof rtrim !== "number" || rtrim % 1 !== 0 || rtrim < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2555 throw new Error("rtrim must be a non-negative integer, got: " + rtrim); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2556 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2557 if (nsites != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2558 if (typeof nsites !== "number" || nsites < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2559 throw new Error("nsites must be a positive number, got: " + nsites); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2560 } else if (nsites == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2561 nsites = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2562 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2563 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2564 if (evalue != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2565 if (typeof evalue === "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2566 if (evalue < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2567 throw new Error("evalue must be a non-negative number, got: " + evalue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2568 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2569 } else if (typeof evalue === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2570 evalue_re = /^((?:[+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|inf)$/; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2571 if (!evalue_re.test(evalue)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2572 throw new Error("evalue must be a non-negative number, got: " + evalue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2573 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2574 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2575 throw new Error("evalue must be a non-negative number, got: " + evalue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2576 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2577 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2578 // set properties |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2579 this.name = name; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2580 this.alt = alt; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2581 this.nsites = nsites; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2582 this.evalue = evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2583 this.ltrim = ltrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2584 this.rtrim = rtrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2585 if (typeof matrix === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2586 // string constructor |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2587 data = parse_pspm_string(matrix); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2588 this.alph_length = data["alph_length"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2589 this.motif_length = data["motif_length"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2590 this.pspm = data["pspm"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2591 if (this.evalue == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2592 if (data["evalue"] != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2593 this.evalue = data["evalue"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2594 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2595 this.evalue = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2596 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2597 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2598 if (this.nsites == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2599 if (typeof data["nsites"] === "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2600 this.nsites = data["nsites"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2601 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2602 this.nsites = 20; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2603 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2604 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2605 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2606 // assume pspm is a nested array |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2607 this.motif_length = matrix.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2608 this.alph_length = (matrix.length > 0 ? matrix[0].length : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2609 if (this.nsites == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2610 this.nsites = 20; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2611 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2612 if (this.evalue == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2613 this.evalue = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2614 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2615 this.pspm = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2616 // copy pspm and check |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2617 for (row = 0; row < this.motif_length; row++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2618 if (this.alph_length != matrix[row].length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2619 throw new Error("COLUMN_MISMATCH"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2620 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2621 this.pspm[row] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2622 row_sum = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2623 for (col = 0; col < this.alph_length; col++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2624 this.pspm[row][col] = matrix[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2625 row_sum += this.pspm[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2626 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2627 delta = 0.1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2628 if (isNaN(row_sum) || (row_sum > 1 && (row_sum - 1) > delta) || |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2629 (row_sum < 1 && (1 - row_sum) > delta)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2630 throw new Error("INVALID_SUM"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2631 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2632 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2633 // copy pssm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2634 if (pssm != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2635 this.pssm = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2636 for (row = 0; row < this.motif_length; row++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2637 this.pssm[row] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2638 for (col = 0; col < this.alph_length; col++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2639 this.pssm[row][col] = pssm[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2640 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2641 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2642 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2643 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2644 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2645 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2646 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2647 Pspm.prototype.copy = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2648 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2649 return new Pspm(this); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2650 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2651 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2652 Pspm.prototype.reverse = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2653 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2654 var x, y, temp, temp_trim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2655 //reverse |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2656 x = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2657 y = this.motif_length-1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2658 while (x < y) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2659 temp = this.pspm[x]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2660 this.pspm[x] = this.pspm[y]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2661 this.pspm[y] = temp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2662 x++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2663 y--; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2664 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2665 // reverse pssm (if defined) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2666 if (typeof this.pssm !== "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2667 //reverse |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2668 x = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2669 y = this.motif_length-1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2670 while (x < y) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2671 temp = this.pssm[x]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2672 this.pspm[x] = this.pssm[y]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2673 this.pssm[y] = temp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2674 x++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2675 y--; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2676 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2677 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2678 //swap triming |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2679 temp_trim = this.ltrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2680 this.ltrim = this.rtrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2681 this.rtrim = temp_trim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2682 return this; //allow function chaining... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2683 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2684 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2685 Pspm.prototype.reverse_complement = function(alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2686 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2687 var x, y, temp, i, row, c, temp_trim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2688 if (this.alph_length != alphabet.get_size_core()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2689 throw new Error("The alphabet size does not match the size of the pspm."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2690 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2691 if (!alphabet.has_complement()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2692 throw new Error("The specified alphabet can not be complemented."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2693 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2694 // reverse motif |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2695 this.reverse(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2696 //complement |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2697 for (x = 0; x < this.motif_length; x++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2698 row = this.pspm[x]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2699 for (i = 0; i < row.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2700 c = alphabet.get_complement(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2701 if (c < i) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2702 temp = row[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2703 row[i] = row[c]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2704 row[c] = temp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2705 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2706 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2707 // complement pssm (if defined) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2708 if (typeof this.pssm !== "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2709 //complement |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2710 for (x = 0; x < this.motif_length; x++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2711 row = this.pssm[x]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2712 for (i = 0; i < row.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2713 c = alphabet.get_complement(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2714 if (c < i) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2715 temp = row[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2716 row[i] = row[c]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2717 row[c] = temp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2718 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2719 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2720 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2721 return this; //allow function chaining... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2722 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2723 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2724 Pspm.prototype.get_stack = function(position, alphabet, ssc) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2725 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2726 var row, stack_ic, alphabet_ic, stack, i, sym; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2727 if (this.alph_length != alphabet.get_size_core()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2728 throw new Error("The alphabet size does not match the size of the pspm."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2729 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2730 row = this.pspm[position]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2731 stack_ic = this.get_stack_ic(position, alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2732 if (ssc) stack_ic -= this.get_error(alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2733 alphabet_ic = alphabet.get_ic(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2734 stack = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2735 for (i = 0; i < this.alph_length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2736 sym = new Symbol(i, row[i]*stack_ic/alphabet_ic, alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2737 if (sym.get_scale() <= 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2738 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2739 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2740 stack.push(sym); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2741 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2742 stack.sort(compare_symbol); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2743 return stack; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2744 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2745 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2746 Pspm.prototype.get_stack_ic = function(position, alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2747 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2748 var row, H, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2749 if (this.alph_length != alphabet.get_size_core()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2750 throw new Error("The alphabet size does not match the size fo the pspm."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2751 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2752 row = this.pspm[position]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2753 H = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2754 for (i = 0; i < this.alph_length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2755 if (row[i] === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2756 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2757 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2758 H -= (row[i] * (Math.log(row[i]) / Math.LN2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2759 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2760 return alphabet.get_ic() - H; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2761 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2762 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2763 Pspm.prototype.get_error = function(alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2764 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2765 if (this.nsites === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2766 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2767 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2768 return (alphabet.get_size_core()-1) / (2 * Math.LN2 * this.nsites); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2769 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2770 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2771 Pspm.prototype.get_motif_length = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2772 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2773 return this.motif_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2774 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2775 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2776 Pspm.prototype.get_alph_length = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2777 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2778 return this.alph_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2779 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2780 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2781 Pspm.prototype.get_left_trim = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2782 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2783 return this.ltrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2784 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2785 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2786 Pspm.prototype.get_right_trim = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2787 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2788 return this.rtrim; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2789 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2790 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2791 Pspm.prototype.as_best_match = function(alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2792 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2793 var match, odds, best_odds, best_index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2794 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2795 match = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2796 for (i = 0; i < this.motif_length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2797 best_index = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2798 best_odds = this.pspm[i][0] / alphabet.get_bg_freq(0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2799 for (j = 1; j < this.alph_length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2800 odds = this.pspm[i][j] / alphabet.get_bg_freq(j); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2801 if (odds > best_odds) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2802 best_odds = odds; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2803 best_index = j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2804 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2805 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2806 match += alphabet.get_symbol(best_index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2807 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2808 return match; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2809 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2810 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2811 Pspm.prototype.as_count_matrix = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2812 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2813 var count, count_text, text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2814 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2815 text = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2816 for (i = 0; i < this.motif_length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2817 if (i !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2818 text += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2819 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2820 for (j = 0; j < this.alph_length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2821 if (j !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2822 text += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2823 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2824 count = Math.round(this.nsites * this.pspm[i][j]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2825 count_text = "" + count; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2826 // pad up to length of 4 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2827 if (count_text.length < 4) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2828 text += (new Array(5 - count_text.length)).join(" ") + count_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2829 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2830 text += count_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2831 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2832 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2833 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2834 return text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2835 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2836 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2837 Pspm.prototype.as_probability_matrix = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2838 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2839 var text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2840 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2841 text = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2842 for (i = 0; i < this.motif_length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2843 if (i !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2844 text += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2845 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2846 for (j = 0; j < this.alph_length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2847 if (j !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2848 text += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2849 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2850 text += this.pspm[i][j].toFixed(6); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2851 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2852 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2853 return text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2854 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2855 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2856 Pspm.prototype.as_score_matrix = function(alphabet, pseudo) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2857 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2858 var me, score, out, row, col, score_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2859 me = this; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2860 if (typeof this.pssm === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2861 if (!(typeof alphabet === "object" && alphabet != null && alphabet instanceof Alphabet)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2862 throw new Error("The alphabet is required to generate the pssm."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2863 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2864 if (typeof pseudo === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2865 pseudo = 0.01; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2866 } else if (typeof pseudo !== "number" || pseudo < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2867 throw new Error("Expected positive number for pseudocount"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2868 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2869 score = function(row, col) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2870 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2871 var p, bg, p2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2872 p = me.pspm[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2873 bg = alphabet.get_bg_freq(col); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2874 p2 = (p * me.nsites + bg * pseudo) / (me.nsites + pseudo); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2875 return (p2 > 0 ? Math.round((Math.log(p2 / bg) / Math.LN2) * 100) : -10000); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2876 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2877 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2878 score = function(row, col) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2879 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2880 return me.pssm[row][col]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2881 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2882 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2883 out = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2884 for (row = 0; row < this.motif_length; row++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2885 for (col = 0; col < this.alph_length; col++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2886 if (col !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2887 out += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2888 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2889 score_text = "" + score(row, col); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2890 // pad out to 6 characters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2891 if (score_text.length < 6) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2892 out += (new Array(7 - score_text.length)).join(" ") + score_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2893 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2894 out += score_text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2895 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2896 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2897 out += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2898 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2899 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2900 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2901 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2902 Pspm.prototype.as_pspm = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2903 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2904 return "letter-probability matrix: alength= " + this.alph_length + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2905 " w= " + this.motif_length + " nsites= " + this.nsites + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2906 " E= " + (typeof this.evalue === "number" ? |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2907 this.evalue.toExponential() : this.evalue) + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2908 this.as_probability_matrix(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2909 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2910 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2911 Pspm.prototype.as_pssm = function(alphabet, pseudo) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2912 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2913 return "log-odds matrix: alength= " + this.alph_length + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2914 " w= " + this.motif_length + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2915 " E= " + (typeof this.evalue == "number" ? |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2916 this.evalue.toExponential() : this.evalue) + "\n" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2917 this.as_score_matrix(alphabet, pseudo); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2918 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2919 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2920 Pspm.prototype.as_meme = function(options) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2921 var with_header, with_pspm, with_pssm, version, alphabet, bg_source, pseudocount, strands; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2922 var out, alen, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2923 // get the options |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2924 if (typeof options !== "object" || options === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2925 options = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2926 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2927 with_header = (typeof options["with_header"] === "boolean" ? options["with_header"] : false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2928 with_pspm = (typeof options["with_pspm"] === "boolean" ? options["with_pspm"] : false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2929 with_pssm = (typeof options["with_pssm"] === "boolean" ? options["with_pssm"] : false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2930 if (!with_pspm && !with_pssm) with_pspm = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2931 if (with_header) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2932 if (typeof options["version"] === "string" && /^\d+(?:\.\d+){0,2}$/.test(options["version"])) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2933 version = options["version"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2934 } else if (typeof options["version"] === "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2935 version = options["version"].toFixed(0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2936 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2937 version = "4"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2938 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2939 if (typeof options["strands"] === "number" && options["strands"] === 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2940 strands = 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2941 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2942 strands = 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2943 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2944 if (typeof options["bg_source"] === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2945 bg_source = options["bg_source"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2946 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2947 bg_source = "unknown source"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2948 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2949 if (typeof options["alphabet"] === "object" && options["alphabet"] != null |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2950 && options["alphabet"] instanceof Alphabet) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2951 alphabet = options["alphabet"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2952 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2953 throw new Error("The alphabet is required to generate the header."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2954 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2955 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2956 // now create the output |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2957 out = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2958 if (with_header) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2959 out = "MEME version " + version + "\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2960 out += alphabet.as_meme() + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2961 if (alphabet.has_complement()) { // assume DNA has both strands unless otherwise specified |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2962 out += "strands: " + (strands === 1 ? "+" : "+ -") + "\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2963 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2964 out += "Background letter frequencies (from " + bg_source + "):\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2965 alen = alphabet.get_size_core(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2966 for (i = 0; i < alen; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2967 if (i !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2968 if (i % 9 === 0) { // maximum of nine entries per line |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2969 out += "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2970 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2971 out += " "; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2972 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2973 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2974 out += alphabet.get_symbol(i) + " " + alphabet.get_bg_freq(i).toFixed(3); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2975 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2976 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2977 out += "\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2978 out += "MOTIF " + this.name + (this.alt == null ? "" : " " + this.alt); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2979 if (with_pssm) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2980 out += "\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2981 out += this.as_pssm(options["alphabet"], options["pseudocount"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2982 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2983 if (with_pspm) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2984 out += "\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2985 out += this.as_pspm(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2986 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2987 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2988 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2989 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2990 Pspm.prototype.toString = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2991 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2992 var str, i, row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2993 str = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2994 for (i = 0; i < this.pspm.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2995 row = this.pspm[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2996 str += row.join("\t") + "\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2997 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2998 return str; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
2999 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3000 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3001 function parse_pspm_properties(str) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3002 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3003 var parts, i, eqpos, before, after, properties, prop, num, num_re; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3004 num_re = /^((?:[+]?[0-9]*\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|inf)$/; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3005 parts = trim(str).split(/\s+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3006 // split up words containing = |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3007 for (i = 0; i < parts.length;) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3008 eqpos = parts[i].indexOf("="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3009 if (eqpos != -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3010 before = parts[i].substr(0, eqpos); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3011 after = parts[i].substr(eqpos+1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3012 if (before.length > 0 && after.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3013 parts.splice(i, 1, before, "=", after); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3014 i += 3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3015 } else if (before.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3016 parts.splice(i, 1, before, "="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3017 i += 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3018 } else if (after.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3019 parts.splice(i, 1, "=", after); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3020 i += 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3021 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3022 parts.splice(i, 1, "="); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3023 i++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3024 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3025 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3026 i++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3027 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3028 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3029 properties = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3030 for (i = 0; i < parts.length; i += 3) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3031 if (parts.length - i < 3) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3032 throw new Error("Expected PSPM property was incomplete. "+ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3033 "Remaing parts are: " + parts.slice(i).join(" ")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3034 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3035 if (parts[i+1] !== "=") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3036 throw new Error("Expected '=' in PSPM property between key and " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3037 "value but got " + parts[i+1]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3038 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3039 prop = parts[i].toLowerCase(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3040 num = parts[i+2]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3041 if (!num_re.test(num)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3042 throw new Error("Expected numeric value for PSPM property '" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3043 prop + "' but got '" + num + "'"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3044 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3045 properties[prop] = num; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3046 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3047 return properties; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3048 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3049 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3050 function parse_pspm_string(pspm_string) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3051 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3052 var header_re, lines, first_line, line_num, col_num, alph_length, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3053 motif_length, nsites, evalue, pspm, i, line, match, props, parts, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3054 j, prob; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3055 header_re = /^letter-probability\s+matrix:(.*)$/i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3056 lines = pspm_string.split(/\n/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3057 first_line = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3058 line_num = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3059 col_num = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3060 alph_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3061 motif_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3062 nsites; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3063 evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3064 pspm = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3065 for (i = 0; i < lines.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3066 line = trim(lines[i]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3067 if (line.length === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3068 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3069 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3070 // check the first line for a header though allow matrices without it |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3071 if (first_line) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3072 first_line = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3073 match = header_re.exec(line); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3074 if (match !== null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3075 props = parse_pspm_properties(match[1]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3076 if (props.hasOwnProperty("alength")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3077 alph_length = parseFloat(props["alength"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3078 if (alph_length != 4 && alph_length != 20) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3079 throw new Error("PSPM property alength should be 4 or 20" + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3080 " but got " + alph_length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3081 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3082 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3083 if (props.hasOwnProperty("w")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3084 motif_length = parseFloat(props["w"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3085 if (motif_length % 1 !== 0 || motif_length < 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3086 throw new Error("PSPM property w should be an integer larger " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3087 "than zero but got " + motif_length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3088 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3089 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3090 if (props.hasOwnProperty("nsites")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3091 nsites = parseFloat(props["nsites"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3092 if (nsites <= 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3093 throw new Error("PSPM property nsites should be larger than " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3094 "zero but got " + nsites); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3095 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3096 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3097 if (props.hasOwnProperty("e")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3098 evalue = props["e"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3099 if (evalue < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3100 throw new Error("PSPM property evalue should be " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3101 "non-negative but got " + evalue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3102 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3103 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3104 continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3105 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3106 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3107 pspm[line_num] = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3108 col_num = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3109 parts = line.split(/\s+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3110 for (j = 0; j < parts.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3111 prob = parseFloat(parts[j]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3112 if (prob != parts[j] || prob < 0 || prob > 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3113 throw new Error("Expected probability but got '" + parts[j] + "'"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3114 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3115 pspm[line_num][col_num] = prob; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3116 col_num++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3117 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3118 line_num++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3119 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3120 if (typeof motif_length === "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3121 if (pspm.length != motif_length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3122 throw new Error("Expected PSPM to have a motif length of " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3123 motif_length + " but it was actually " + pspm.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3124 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3125 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3126 motif_length = pspm.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3127 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3128 if (typeof alph_length !== "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3129 alph_length = pspm[0].length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3130 if (alph_length != 4 && alph_length != 20) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3131 throw new Error("Expected length of first row in the PSPM to be " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3132 "either 4 or 20 but got " + alph_length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3133 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3134 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3135 for (i = 0; i < pspm.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3136 if (pspm[i].length != alph_length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3137 throw new Error("Expected PSPM row " + i + " to have a length of " + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3138 alph_length + " but the length was " + pspm[i].length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3139 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3140 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3141 return {"pspm": pspm, "motif_length": motif_length, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3142 "alph_length": alph_length, "nsites": nsites, "evalue": evalue}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3143 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3144 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3145 // end Pspm object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3146 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3147 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3148 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3149 // start Logo object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3150 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3151 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3152 var Logo = function(alphabet, options) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3153 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3154 this.alphabet = alphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3155 this.fine_text = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3156 this.x_axis = 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3157 this.y_axis = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3158 this.xlate_nsyms = 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3159 this.xlate_start = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3160 this.xlate_end = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3161 this.pspm_list = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3162 this.pspm_column = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3163 this.rows = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3164 this.columns = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3165 if (typeof options === "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3166 // the old method signature had fine_text here so we support that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3167 this.fine_text = options; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3168 } else if (typeof options === "object" && options != null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3169 this.fine_text = (typeof options.fine_text === "string" ? options.fine_text : ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3170 this.x_axis = (typeof options.x_axis === "boolean" ? (options.x_axis ? 1 : 0) : 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3171 if (options.x_axis_hidden != null && options.x_axis_hidden) this.x_axis = -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3172 this.y_axis = (typeof options.y_axis === "boolean" ? options.y_axis : true); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3173 this.xlate_nsyms = (typeof options.xlate_nsyms === "number" ? options.xlate_nsyms : this.xlate_nsyms); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3174 this.xlate_start = (typeof options.xlate_start === "number" ? options.xlate_start : this.xlate_start); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3175 this.xlate_end = (typeof options.xlate_end === "number" ? options.xlate_end : this.xlate_end); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3176 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3177 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3178 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3179 Logo.prototype.add_pspm = function(pspm, column) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3180 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3181 var col; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3182 if (typeof column === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3183 column = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3184 } else if (column < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3185 throw new Error("Column index out of bounds."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3186 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3187 this.pspm_list[this.rows] = pspm; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3188 this.pspm_column[this.rows] = column; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3189 this.rows++; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3190 col = column + pspm.get_motif_length(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3191 if (col > this.columns) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3192 this.columns = col; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3193 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3194 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3195 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3196 Logo.prototype.get_columns = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3197 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3198 return this.columns; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3199 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3200 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3201 Logo.prototype.get_xlate_nsyms = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3202 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3203 return this.xlate_nsyms; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3204 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3205 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3206 Logo.prototype.get_xlate_start = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3207 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3208 return (this.xlate_start != null ? this.xlate_start : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3209 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3210 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3211 Logo.prototype.get_xlate_end = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3212 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3213 return (this.xlate_end != null ? this.xlate_end : this.columns * this.xlate_nsyms); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3214 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3215 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3216 Logo.prototype.get_xlate_columns = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3217 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3218 return this.get_xlate_end() - this.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3219 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3220 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3221 Logo.prototype.get_rows = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3222 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3223 return this.rows; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3224 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3225 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3226 Logo.prototype.get_pspm = function(row_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3227 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3228 if (row_index < 0 || row_index >= this.rows) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3229 throw new Error("INDEX_OUT_OF_BOUNDS"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3230 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3231 return this.pspm_list[row_index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3232 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3233 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3234 Logo.prototype.get_offset = function(row_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3235 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3236 if (row_index < 0 || row_index >= this.rows) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3237 throw new Error("INDEX_OUT_OF_BOUNDS"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3238 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3239 return this.pspm_column[row_index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3240 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3241 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3242 Logo.prototype._as_eps_data = function(ssc, errbars) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3243 var i, j, pos, stack_pos, pspm, stack, sym, out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3244 out = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3245 for (i = 0; i < this.rows; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3246 out += "\nStartLine\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3247 // Indent |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3248 for (j = 0; j < this.pspm_column[i]; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3249 out += "() startstack\nendstack\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3250 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3251 pspm = this.pspm_list[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3252 if (pspm.get_left_trim() > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3253 out += "MuteColour\nDrawTrimEdge\n" + pspm.get_left_trim() + " DrawTrimBg\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3254 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3255 for (pos = 0; pos < pspm.get_motif_length(); pos++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3256 if (pos != 0 && pos == pspm.get_left_trim()) { // enable full colour |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3257 out += "DrawTrimEdge\nRestoreColour\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3258 } else if (pos == (pspm.get_motif_length() - pspm.get_right_trim())) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3259 out += "MuteColour\n" + pspm.get_right_trim() + " DrawTrimBg\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3260 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3261 out += "(" + (pos + 1) + ") startstack\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3262 stack = pspm.get_stack(pos, this.alphabet, ssc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3263 for (stack_pos = 0; stack_pos < stack.length; stack_pos++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3264 sym = stack[stack_pos]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3265 out += " " + (sym.get_scale() * this.alphabet.get_ic()) + " (" + sym.get_symbol() + ") numchar\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3266 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3267 if (errbars) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3268 out += " " + pspm.get_error(this.alphabet) + " Ibeam\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3269 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3270 out += "endstack\n\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3271 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3272 if (pspm.get_right_trim() > 0 || pspm.get_left_trim() == pspm.get_motif_length()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3273 out += "RestoreColour\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3274 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3275 out += "EndLine\n"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3276 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3277 return out; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3278 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3279 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3280 Logo.prototype.as_eps = function(options) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3281 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3282 if (this.xlate_nsyms != 1) throw new Error("Unsupported setting xlate_nsyms for EPS"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3283 if (this.xlate_start != null) throw new Error("Unsupported setting xlate_start for EPS"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3284 if (this.xlate_end != null) throw new Error("Unsupported setting xlate_end for EPS"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3285 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3286 var LOGOHEIGHT = 7.5; // default height of line in cm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3287 var cm2pts, height, width, now, ssc, errbars; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3288 if (typeof options === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3289 options = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3290 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3291 cm2pts = 72 / 2.54; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3292 if (typeof options.logo_height == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3293 height = options.logo_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3294 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3295 height = LOGOHEIGHT * this.rows; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3296 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3297 if (typeof options.logo_width == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3298 width = options.logo_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3299 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3300 width = this.columns + 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3301 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3302 now = new Date(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3303 ssc = (typeof options.ssc == "boolean" ? options.ssc : false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3304 errbars = (typeof options.show_error_bar == "boolean" ? options.show_error_bar : ssc); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3305 var values = { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3306 "LOGOHEIGHT": height, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3307 "LOGOWIDTH": width, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3308 "BOUNDINGHEIGHT": Math.round(height * cm2pts), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3309 "BOUNDINGWIDTH": Math.round(width * cm2pts), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3310 "LOGOLINEHEIGHT": (height / this.rows), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3311 "CHARSPERLINE": this.columns, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3312 "BARBITS": this.alphabet.get_ic(), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3313 "LOGOTYPE": (this.alphabet.has_complement() ? "NA" : "AA"), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3314 "CREATIONDATE": now.getDate() + "." + (now.getMonth() + 1) + "." + now.getFullYear() + " " + now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds(), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3315 "ERRORBARFRACTION": (typeof options.error_bar_fraction == "number" ? options.error_bar_fraction : 1.0), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3316 "TICBITS": (typeof options.ticbits == "number" ? options.ticbits : 1.0), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3317 "TITLE": (typeof options.title == "string" ? options.title : ""), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3318 "FINEPRINT": (typeof options.fineprint == "string" ? options.fineprint : this.fine_text), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3319 "XAXISLABEL": (typeof options.xaxislabel == "string" ? options.xaxislabel : ""), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3320 "YAXISLABEL": (typeof options.yaxislabel == "string" ? options.yaxislabel : "bits"), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3321 "SSC": ssc, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3322 "YAXIS": (typeof options.show_y_axis == "boolean" ? options.show_y_axis : this.y_axis), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3323 "SHOWENDS": (typeof options.show_ends == "boolean" ? options.show_ends : false), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3324 "ERRBAR": errbars, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3325 "OUTLINE": (typeof options.show_outline == "boolean" ? options.show_outline : false), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3326 "NUMBERING": (typeof options.show_numbering == "boolean" ? options.show_numbering : this.x_axis != 0), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3327 "SHOWINGBOX": (typeof options.show_box == "boolean" ? options.show_box : false), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3328 "CREATOR": (typeof options.creator == "string" ? options.creator : "motif_logo.js"), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3329 "FONTSIZE": (typeof options.label_font_size == "number" ? options.label_font_size : 12), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3330 "TITLEFONTSIZE": (typeof options.title_font_size == "number" ? options.title_font_size : 12), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3331 "SMALLFONTSIZE": (typeof options.small_font_size == "number" ? options.small_font_size : 6), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3332 "TOPMARGIN" : (typeof options.top_margin == "number" ? options.top_margin : 0.9), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3333 "BOTTOMMARGIN": (typeof options.bottom_margin == "number" ? options.bottom_margin : 0.9), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3334 "COLORDICT": this.alphabet._as_eps_dict(), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3335 "DATA": this._as_eps_data(ssc, errbars) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3336 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3337 // now this requires that the script containing the template has been imported! |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3338 return motif_logo_template(values); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3339 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3340 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3341 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3342 // end Logo object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3343 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3344 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3345 // calculate the exact size (in pixels) of an object drawn on the |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3346 // canvas assuming that the background of the canvas is transparent. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3347 function canvas_bounds(ctx, cwidth, cheight) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3348 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3349 var data, r, c, top_line, bottom_line, left_line, right_line, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3350 txt_width, txt_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3351 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3352 // extract the image data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3353 data = ctx.getImageData(0, 0, cwidth, cheight).data; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3354 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3355 // set initial values |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3356 top_line = -1; bottom_line = -1; left_line = -1; right_line = -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3357 txt_width = 0; txt_height = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3358 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3359 // Find the top-most line with a non-transparent pixel |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3360 for (r = 0; r < cheight; r++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3361 for (c = 0; c < cwidth; c++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3362 if (data[r * cwidth * 4 + c * 4 + 3]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3363 top_line = r; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3364 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3365 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3366 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3367 if (top_line != -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3368 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3369 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3370 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3371 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3372 // Only bother looking if we found at least one set pixel... |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3373 if (top_line != -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3374 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3375 //find the last line with a non-transparent pixel |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3376 for (r = cheight-1; r >= top_line; r--) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3377 for(c = 0; c < cwidth; c++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3378 if(data[r * cwidth * 4 + c * 4 + 3]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3379 bottom_line = r; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3380 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3381 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3382 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3383 if (bottom_line != -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3384 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3385 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3386 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3387 // calculate height |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3388 txt_height = bottom_line - top_line + 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3389 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3390 // Find the left-most line with a non-transparent pixel |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3391 for (c = 0; c < cwidth; c++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3392 for (r = top_line; r <= bottom_line; r++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3393 if (data[r * cwidth * 4 + c * 4 + 3]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3394 left_line = c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3395 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3396 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3397 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3398 if (left_line != -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3399 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3400 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3401 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3402 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3403 //find the right most line with a non-transparent pixel |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3404 for (c = cwidth-1; c >= left_line; c--) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3405 for(r = top_line; r <= bottom_line; r++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3406 if(data[r * cwidth * 4 + c * 4 + 3]) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3407 right_line = c; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3408 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3409 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3410 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3411 if (right_line != -1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3412 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3413 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3414 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3415 txt_width = right_line - left_line + 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3416 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3417 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3418 //return the bounds |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3419 return {bound_top: top_line, bound_bottom: bottom_line, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3420 bound_left: left_line, bound_right: right_line, width: txt_width, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3421 height: txt_height}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3422 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3423 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3424 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3425 // start RasterizedAlphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3426 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3427 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3428 // Rasterize Alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3429 // 1) Measure width of text at default font for all symbols in alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3430 // 2) sort in width ascending |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3431 // 3) Drop the top and bottom 10% (designed to ignore outliers like 'W' and 'I') |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3432 // 4) Calculate the average as the maximum scaling factor (designed to stop I becoming a rectangular blob). |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3433 // 5) Assume scale of zero would result in width of zero, interpolate scale required to make perfect width font |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3434 // 6) Draw text onto temp canvas at calculated scale |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3435 // 7) Find bounds of drawn text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3436 // 8) Paint on to another canvas at the desired height (but only scaling width to fit if larger). |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3437 var RasterizedAlphabet = function(alphabet, logo_scale, font, width) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3438 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3439 var default_size, safety_pad, canvas, ctx, middle, baseline, widths, sizes, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3440 i, sym, size, tenpercent, avg_width, scale, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3441 target_width, target_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3442 //variable prototypes |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3443 this.alphabet = alphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3444 this.scale = logo_scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3445 this.sym_cache = {}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3446 this.stack_num_cache = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3447 this.scale_num_cache = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3448 // size of canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3449 default_size = 60; // size of measuring canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3450 safety_pad = 20; // pixels to pad around so we don't miss the edges |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3451 // create a canvas to do our measuring |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3452 canvas = document.createElement("canvas"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3453 if (!canvas.getContext) throw new Error("No canvas support"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3454 canvas.width = default_size + 2 * safety_pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3455 canvas.height = default_size + 2 * safety_pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3456 middle = Math.round(canvas.width / 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3457 baseline = Math.round(canvas.height - safety_pad); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3458 ctx = canvas.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3459 if (!supports_text(ctx)) throw new Error("Canvas does not support text"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3460 ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3461 ctx.textAlign = "center"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3462 ctx.translate(middle, baseline); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3463 // list of widths |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3464 widths = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3465 sizes = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3466 //now measure each letter in the alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3467 for (i = 0; i < alphabet.get_size_core(); ++i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3468 // reset the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3469 ctx.clearRect(0, 0, canvas.width, canvas.height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3470 ctx.fillStyle = alphabet.get_colour(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3471 // draw the test text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3472 ctx.fillText(alphabet.get_symbol(i), 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3473 //measure |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3474 size = canvas_bounds(ctx, canvas.width, canvas.height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3475 if (size.width === 0) throw new Error("Invisible symbol!"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3476 widths.push(size.width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3477 sizes[i] = size; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3478 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3479 //sort the widths |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3480 widths.sort(function(a,b) {return a - b;}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3481 //drop 10% of the items off each end |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3482 tenpercent = Math.floor(widths.length / 10); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3483 for (i = 0; i < tenpercent; ++i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3484 widths.pop(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3485 widths.shift(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3486 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3487 //calculate average width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3488 avg_width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3489 for (i = 0; i < widths.length; ++i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3490 avg_width += widths[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3491 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3492 avg_width /= widths.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3493 // calculate the target width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3494 target_width = width * this.scale * 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3495 // calculate scales |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3496 for (i = 0; i < alphabet.get_size_core(); ++i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3497 sym = alphabet.get_symbol(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3498 size = sizes[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3499 // calculate scale |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3500 scale = target_width / Math.max(avg_width, size.width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3501 // estimate scaled height |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3502 target_height = size.height * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3503 // create an appropriately sized canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3504 canvas = document.createElement("canvas"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3505 canvas.width = target_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3506 canvas.height = target_height + safety_pad * 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3507 // calculate the middle |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3508 middle = Math.round(canvas.width / 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3509 // calculate the baseline |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3510 baseline = Math.round(canvas.height - safety_pad); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3511 // get the context and prepare to draw the rasterized text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3512 ctx = canvas.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3513 ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3514 ctx.fillStyle = alphabet.get_colour(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3515 ctx.textAlign = "center"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3516 ctx.translate(middle, baseline); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3517 ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3518 ctx.scale(scale, scale); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3519 // draw the text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3520 ctx.fillText(sym, 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3521 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3522 this.sym_cache[sym] = {"image": canvas, "size": canvas_bounds(ctx, canvas.width, canvas.height)}; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3523 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3524 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3525 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3526 RasterizedAlphabet.prototype.get_alphabet = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3527 return this.alphabet; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3528 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3529 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3530 RasterizedAlphabet.prototype.get_scale = function() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3531 return this.scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3532 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3533 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3534 RasterizedAlphabet.prototype.draw_stack_sym = function(ctx, letter, dx, dy, dWidth, dHeight) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3535 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3536 var entry, image, size; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3537 entry = this.sym_cache[letter]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3538 image = entry.image; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3539 size = entry.size; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3540 ctx.drawImage(image, 0, size.bound_top -1, image.width, size.height+1, dx, dy, dWidth, dHeight); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3541 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3542 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3543 RasterizedAlphabet.prototype.draw_stack_num = function(ctx, font, stack_width, index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3544 var image, image_ctx, text_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3545 if (index >= this.stack_num_cache.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3546 image = document.createElement("canvas"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3547 // measure the text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3548 image_ctx = image.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3549 image_ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3550 image_ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3551 text_length = image_ctx.measureText("" + (index + 1)).width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3552 image_ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3553 // resize the canvas to fit |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3554 image.width = Math.ceil(stack_width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3555 image.height = Math.ceil(text_length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3556 // draw the text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3557 image_ctx = image.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3558 image_ctx.translate(Math.round(stack_width / 2), 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3559 image_ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3560 image_ctx.textBaseline = "middle"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3561 image_ctx.textAlign = "right"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3562 image_ctx.rotate(-(Math.PI / 2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3563 image_ctx.fillText("" + (index + 1), 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3564 this.stack_num_cache[index] = image; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3565 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3566 image = this.stack_num_cache[index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3567 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3568 ctx.drawImage(image, 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3569 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3570 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3571 RasterizedAlphabet.prototype.draw_scale_num = function(ctx, font, num) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3572 var image, image_ctx, text_size, m_length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3573 if (num >= this.scale_num_cache.length) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3574 image = document.createElement("canvas"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3575 // measure the text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3576 image_ctx = image.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3577 image_ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3578 text_size = image_ctx.measureText("" + num); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3579 if (text_size.actualBoundingBoxAscent && text_size.actualBoundingBoxDesent) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3580 // resize the canvas to fit |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3581 image.width = Math.ceil(text_size.width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3582 image.height = Math.ceil(text_size.actualBoundingBoxAscent + text_size.actualBoundingBoxDesent); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3583 // draw the text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3584 image_ctx = image.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3585 image_ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3586 image_ctx.textAlign = "right"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3587 image_ctx.fillText("" + num, image.width, text_size.actualBoundingBoxAscent); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3588 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3589 // measure width of 'm' to approximate height, we double it later anyway |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3590 m_length = image_ctx.measureText("m").width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3591 // resize the canvas to fit |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3592 image.width = Math.ceil(text_size.width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3593 image.height = Math.ceil(2 * m_length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3594 // draw the text |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3595 image_ctx = image.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3596 image_ctx.font = font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3597 image_ctx.textAlign = "right"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3598 image_ctx.textBaseline = "middle"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3599 image_ctx.fillText("" + num, image.width, m_length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3600 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3601 this.scale_num_cache[num] = image; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3602 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3603 image = this.scale_num_cache[num]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3604 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3605 ctx.drawImage(image, -image.width, -Math.round(image.height / 2)) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3606 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3607 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3608 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3609 // end RasterizedAlphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3610 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3611 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3612 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3613 // start LogoMetrics object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3614 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3615 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3616 var LogoMetrics = function(ctx, logo_columns, logo_rows, has_names, has_finetext, x_axis, y_axis) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3617 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3618 var i, row_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3619 //variable prototypes |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3620 this.pad_top = (has_names ? 5 : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3621 this.pad_left = (y_axis ? 10 : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3622 this.pad_right = (has_finetext ? 15 : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3623 this.pad_bottom = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3624 this.pad_middle = 20; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3625 this.name_height = 14; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3626 this.name_font = "bold " + this.name_height + "px Times, sans-serif"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3627 this.name_spacer = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3628 this.y_axis = y_axis; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3629 this.y_label = "bits"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3630 this.y_label_height = 12; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3631 this.y_label_font = "bold " + this.y_label_height + "px Helvetica, sans-serif"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3632 this.y_label_spacer = 3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3633 this.y_num_height = 12; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3634 this.y_num_width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3635 this.y_num_font = "bold " + this.y_num_height + "px Helvetica, sans-serif"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3636 this.y_tic_width = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3637 this.stack_pad_left = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3638 this.stack_font = "bold 25px Helvetica, sans-serif"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3639 this.stack_height = 90; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3640 this.stack_width = 26; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3641 this.stacks_pad_right = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3642 this.x_axis = x_axis; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3643 this.x_num_above = 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3644 this.x_num_height = 12; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3645 this.x_num_width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3646 this.x_num_font = "bold " + this.x_num_height + "px Helvetica, sans-serif"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3647 this.fine_txt_height = 6; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3648 this.fine_txt_above = 2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3649 this.fine_txt_font = "normal " + this.fine_txt_height + "px Helvetica, sans-serif"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3650 this.letter_metrics = new Array(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3651 this.summed_width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3652 this.summed_height = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3653 //calculate the width of the y axis numbers |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3654 ctx.font = this.y_num_font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3655 for (i = 0; i <= 2; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3656 this.y_num_width = Math.max(this.y_num_width, ctx.measureText("" + i).width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3657 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3658 //calculate the width of the x axis numbers (but they are rotated so it becomes height) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3659 if (x_axis == 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3660 ctx.font = this.x_num_font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3661 for (i = 1; i <= logo_columns; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3662 this.x_num_width = Math.max(this.x_num_width, ctx.measureText("" + i).width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3663 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3664 } else if (x_axis == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3665 this.x_num_height = 4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3666 this.x_num_width = 4; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3667 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3668 this.x_num_height = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3669 this.x_num_width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3670 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3671 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3672 //calculate how much vertical space we want to draw this |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3673 //first we add the padding at the top and bottom since that's always there |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3674 this.summed_height += this.pad_top + this.pad_bottom; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3675 //all except the last row have the same amount of space allocated to them |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3676 if (logo_rows > 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3677 row_height = this.stack_height + this.pad_middle; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3678 if (has_names) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3679 row_height += this.name_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3680 //the label is allowed to overlap into the spacer |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3681 row_height += Math.max(this.y_num_height/2, this.name_spacer); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3682 //the label is allowed to overlap the space used by the other label |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3683 row_height += Math.max(this.y_num_height/2, this.x_num_height + this.x_num_above); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3684 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3685 row_height += this.y_num_height/2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3686 //the label is allowed to overlap the space used by the other label |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3687 row_height += Math.max(this.y_num_height/2, this.x_num_height + this.x_num_above); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3688 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3689 this.summed_height += row_height * (logo_rows - 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3690 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3691 //the last row has the name and fine text below it but no padding |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3692 this.summed_height += this.stack_height + (this.y_axis ? this.y_num_height/2 : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3693 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3694 var fine_txt_total = (has_finetext ? this.fine_txt_height + this.fine_txt_above : 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3695 if (has_names) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3696 this.summed_height += fine_txt_total + this.name_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3697 this.summed_height += Math.max((this.y_axis ? this.y_num_height/2 : 0), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3698 this.x_num_height + this.x_num_above + this.name_spacer); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3699 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3700 this.summed_height += Math.max((this.y_axis ? this.y_num_height/2 : 0), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3701 this.x_num_height + this.x_num_above + fine_txt_total); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3702 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3703 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3704 //calculate how much horizontal space we want to draw this |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3705 //first add the padding at the left and right since that's always there |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3706 this.summed_width += this.pad_left + this.pad_right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3707 if (this.y_axis) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3708 //add on the space for the y-axis label |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3709 this.summed_width += this.y_label_height + this.y_label_spacer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3710 //add on the space for the y-axis |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3711 this.summed_width += this.y_num_width + this.y_tic_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3712 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3713 //add on the space for the stacks |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3714 this.summed_width += (this.stack_pad_left + this.stack_width) * logo_columns; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3715 //add on the padding after the stacks (an offset from the fine text) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3716 this.summed_width += this.stacks_pad_right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3717 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3718 }; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3719 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3720 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3721 // end LogoMetrics object |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3722 //====================================================================== |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3723 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3724 //found this trick at http://talideon.com/weblog/2005/02/detecting-broken-images-js.cfm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3725 function image_ok(img) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3726 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3727 // During the onload event, IE correctly identifies any images that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3728 // weren't downloaded as not complete. Others should too. Gecko-based |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3729 // browsers act like NS4 in that they report this incorrectly. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3730 if (!img.complete) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3731 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3732 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3733 // However, they do have two very useful properties: naturalWidth and |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3734 // naturalHeight. These give the true size of the image. If it failed |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3735 // to load, either of these should be zero. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3736 if (typeof img.naturalWidth !== "undefined" && img.naturalWidth === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3737 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3738 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3739 // No other way of checking: assume it's ok. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3740 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3741 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3742 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3743 function supports_text(ctx) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3744 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3745 if (!ctx.fillText) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3746 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3747 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3748 if (!ctx.measureText) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3749 return false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3750 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3751 return true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3752 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3753 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3754 //draws the scale, returns the width |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3755 function draw_scale(ctx, metrics, alphabet_ic, raster) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3756 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3757 var tic_height, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3758 tic_height = metrics.stack_height / alphabet_ic; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3759 ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3760 ctx.translate(metrics.y_label_height, metrics.y_num_height/2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3761 //draw the axis label |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3762 ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3763 ctx.font = metrics.y_label_font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3764 ctx.translate(0, metrics.stack_height/2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3765 ctx.rotate(-(Math.PI / 2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3766 ctx.textAlign = "center"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3767 ctx.fillText("bits", 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3768 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3769 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3770 ctx.translate(metrics.y_label_spacer + metrics.y_num_width, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3771 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3772 //draw the axis tics |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3773 ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3774 ctx.translate(0, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3775 for (i = 0; i <= alphabet_ic; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3776 //draw the number |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3777 ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3778 ctx.translate(-1, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3779 raster.draw_scale_num(ctx, metrics.y_num_font, i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3780 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3781 //draw the tic |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3782 ctx.fillRect(0, -1, metrics.y_tic_width, 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3783 //prepare for next tic |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3784 ctx.translate(0, -tic_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3785 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3786 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3787 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3788 ctx.fillRect(metrics.y_tic_width - 2, 0, 2, metrics.stack_height) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3789 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3790 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3791 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3792 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3793 function draw_stack_num(ctx, metrics, row_index, raster) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3794 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3795 ctx.save(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3796 ctx.translate(0, Math.round(metrics.stack_height + metrics.x_num_above)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3797 if (metrics.x_axis == 1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3798 raster.draw_stack_num(ctx, metrics.x_num_font, metrics.stack_width, row_index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3799 } else if (metrics.x_axis == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3800 // draw dots instead of the numbers (good for small logos) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3801 ctx.beginPath(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3802 var radius = Math.round(metrics.x_num_height / 2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3803 ctx.arc(Math.round(metrics.stack_width / 2), radius, radius, 0, 2 * Math.PI, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3804 ctx.fill(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3805 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3806 ctx.restore(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3807 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3808 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3809 function draw_stack(ctx, metrics, symbols, raster) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3810 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3811 var preferred_pad, sym_min, i, sym, sym_height, pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3812 preferred_pad = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3813 sym_min = 5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3814 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3815 ctx.save();//1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3816 ctx.translate(0, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3817 for (i = 0; i < symbols.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3818 sym = symbols[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3819 sym_height = metrics.stack_height * sym.get_scale(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3820 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3821 pad = preferred_pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3822 if (sym_height - pad < sym_min) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3823 pad = Math.min(pad, Math.max(0, sym_height - sym_min)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3824 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3825 sym_height -= pad; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3826 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3827 //translate to the correct position |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3828 ctx.translate(0, -(pad/2 + sym_height)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3829 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3830 //draw |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3831 raster.draw_stack_sym(ctx, sym.get_symbol(), 0, 0, metrics.stack_width, sym_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3832 //translate past the padding |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3833 ctx.translate(0, -(pad/2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3834 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3835 ctx.restore();//1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3836 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3837 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3838 function draw_dashed_line(ctx, pattern, start, x1, y1, x2, y2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3839 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3840 var x, y, len, i, dx, dy, tlen, theta, mulx, muly, lx, ly; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3841 dx = x2 - x1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3842 dy = y2 - y1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3843 tlen = Math.pow(dx*dx + dy*dy, 0.5); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3844 theta = Math.atan2(dy,dx); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3845 mulx = Math.cos(theta); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3846 muly = Math.sin(theta); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3847 lx = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3848 ly = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3849 for (i = 0; i < pattern; ++i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3850 lx.push(pattern[i] * mulx); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3851 ly.push(pattern[i] * muly); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3852 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3853 i = start; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3854 x = x1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3855 y = y1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3856 len = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3857 ctx.beginPath(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3858 while (len + pattern[i] < tlen) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3859 ctx.moveTo(x, y); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3860 x += lx[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3861 y += ly[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3862 ctx.lineTo(x, y); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3863 len += pattern[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3864 i = (i + 1) % pattern.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3865 x += lx[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3866 y += ly[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3867 len += pattern[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3868 i = (i + 1) % pattern.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3869 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3870 if (len < tlen) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3871 ctx.moveTo(x, y); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3872 x += mulx * (tlen - len); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3873 y += muly * (tlen - len); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3874 ctx.lineTo(x, y); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3875 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3876 ctx.stroke(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3877 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3878 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3879 function draw_trim_background(ctx, metrics, left_start, left_end, left_divider, right_start, right_end, right_divider) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3880 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3881 var left_size = left_end - left_start; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3882 var right_size = right_end - right_start; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3883 var line_x; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3884 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3885 ctx.save();//s8 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3886 ctx.fillStyle = "rgb(240, 240, 240)"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3887 if (left_size > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3888 ctx.fillRect(left_start * metrics.stack_width, 0, left_size * metrics.stack_width, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3889 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3890 if (right_size > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3891 ctx.fillRect(right_start * metrics.stack_width, 0, right_size * metrics.stack_width, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3892 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3893 ctx.fillStyle = "rgb(51, 51, 51)"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3894 if (left_size > 0 && left_divider) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3895 line_x = (left_end * metrics.stack_width) - 0.5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3896 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3897 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3898 if (right_size > 0 && right_divider) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3899 line_x = (right_start * metrics.stack_width) + 0.5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3900 draw_dashed_line(ctx, [3], 0, line_x, 0, line_x, metrics.stack_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3901 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3902 ctx.restore();//s8 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3903 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3904 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3905 function size_logo_on_canvas(logo, canvas, show_names, scale) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3906 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3907 var draw_name, draw_finetext, metrics; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3908 draw_name = (typeof show_names === "boolean" ? show_names : (logo.get_rows() > 1)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3909 draw_finetext = (logo.fine_text.length > 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3910 if (canvas.width !== 0 && canvas.height !== 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3911 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3912 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3913 metrics = new LogoMetrics(canvas.getContext('2d'), |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3914 logo.get_xlate_columns(), logo.get_rows(), draw_name, draw_finetext, logo.x_axis, logo.y_axis); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3915 if (typeof scale == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3916 //resize the canvas to fit the scaled logo |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3917 canvas.width = metrics.summed_width * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3918 canvas.height = metrics.summed_height * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3919 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3920 if (canvas.width === 0 && canvas.height === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3921 canvas.width = metrics.summed_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3922 canvas.height = metrics.summed_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3923 } else if (canvas.width === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3924 canvas.width = metrics.summed_width * (canvas.height / metrics.summed_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3925 } else if (canvas.height === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3926 canvas.height = metrics.summed_height * (canvas.width / metrics.summed_width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3927 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3928 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3929 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3930 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3931 function draw_logo_on_canvas(logo, canvas, show_names, scale) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3932 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3933 var i, draw_name, draw_finetext, ctx, metrics, raster, pspm_i, pspm, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3934 offset, col_index, motif_position, ssc; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3935 ssc = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3936 draw_name = (typeof show_names === "boolean" ? show_names : (logo.get_rows() > 1)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3937 draw_finetext = (logo.fine_text.length > 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3938 ctx = canvas.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3939 //assume that the user wants the canvas scaled equally so calculate what the best width for this image should be |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3940 metrics = new LogoMetrics(ctx, logo.get_xlate_columns(), logo.get_rows(), draw_name, draw_finetext, logo.x_axis, logo.y_axis); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3941 if (typeof scale == "number") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3942 //resize the canvas to fit the scaled logo |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3943 canvas.width = metrics.summed_width * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3944 canvas.height = metrics.summed_height * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3945 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3946 if (canvas.width === 0 && canvas.height === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3947 scale = 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3948 canvas.width = metrics.summed_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3949 canvas.height = metrics.summed_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3950 } else if (canvas.width === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3951 scale = canvas.height / metrics.summed_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3952 canvas.width = metrics.summed_width * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3953 } else if (canvas.height === 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3954 scale = canvas.width / metrics.summed_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3955 canvas.height = metrics.summed_height * scale; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3956 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3957 scale = Math.min(canvas.width / metrics.summed_width, canvas.height / metrics.summed_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3958 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3959 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3960 // cache the raster based on the assumption that we will be drawing a lot |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3961 // of logos the same size and alphabet |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3962 if (typeof draw_logo_on_canvas.raster_cache === "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3963 draw_logo_on_canvas.raster_cache = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3964 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3965 for (i = 0; i < draw_logo_on_canvas.raster_cache.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3966 raster = draw_logo_on_canvas.raster_cache[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3967 if (raster.get_alphabet().equals(logo.alphabet) && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3968 Math.abs(raster.get_scale() - scale) < 0.1) break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3969 raster = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3970 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3971 if (raster == null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3972 raster = new RasterizedAlphabet(logo.alphabet, scale, metrics.stack_font, metrics.stack_width); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3973 draw_logo_on_canvas.raster_cache.push(raster); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3974 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3975 ctx = canvas.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3976 ctx.save();//s1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3977 ctx.scale(scale, scale); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3978 ctx.save();//s2 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3979 ctx.save();//s7 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3980 //create margin |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3981 ctx.translate(Math.round(metrics.pad_left), Math.round(metrics.pad_top)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3982 for (pspm_i = 0; pspm_i < logo.get_rows(); ++pspm_i) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3983 pspm = logo.get_pspm(pspm_i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3984 offset = logo.get_offset(pspm_i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3985 //optionally draw name if this isn't the last row or is the only row |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3986 if (draw_name && (logo.get_rows() == 1 || pspm_i != (logo.get_rows()-1))) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3987 ctx.save();//s4 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3988 ctx.translate(Math.round(metrics.summed_width/2), Math.round(metrics.name_height)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3989 ctx.font = metrics.name_font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3990 ctx.textAlign = "center"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3991 ctx.fillText(pspm.name, 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3992 ctx.restore();//s4 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3993 ctx.translate(0, Math.round(metrics.name_height + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3994 Math.min(0, metrics.name_spacer - metrics.y_num_height/2))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3995 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3996 //draw scale |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3997 if (logo.y_axis) draw_scale(ctx, metrics, logo.alphabet.get_ic(), raster); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3998 ctx.save();//s5 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
3999 //translate across past the scale |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4000 if (logo.y_axis) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4001 ctx.translate(Math.round(metrics.y_label_height + metrics.y_label_spacer + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4002 metrics.y_num_width + metrics.y_tic_width), Math.round(metrics.y_num_height / 2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4003 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4004 //draw the trimming background |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4005 if (pspm.get_left_trim() > 0 || pspm.get_right_trim() > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4006 var left_start = offset * logo.get_xlate_nsyms(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4007 var left_end = (offset + pspm.get_left_trim()) * logo.get_xlate_nsyms(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4008 var left_divider = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4009 if (left_end < logo.get_xlate_start() || left_start > logo.get_xlate_end()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4010 // no overlap |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4011 left_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4012 left_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4013 left_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4014 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4015 if (left_start < logo.get_xlate_start()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4016 left_start = logo.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4017 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4018 if (left_end > logo.get_xlate_end()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4019 left_end = logo.get_xlate_end(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4020 left_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4021 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4022 left_start -= logo.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4023 left_end -= logo.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4024 if (left_end < left_start) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4025 left_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4026 left_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4027 left_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4028 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4029 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4030 var right_end = (offset + pspm.get_motif_length()) * logo.get_xlate_nsyms(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4031 //var right_start = right_end - (pspm.get_left_trim() * logo.get_xlate_nsyms()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4032 var right_start = right_end - (pspm.get_right_trim() * logo.get_xlate_nsyms()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4033 var right_divider = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4034 if (right_end < logo.get_xlate_start() || right_start > logo.get_xlate_end()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4035 // no overlap |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4036 right_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4037 right_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4038 right_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4039 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4040 if (right_start < logo.get_xlate_start()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4041 right_start = logo.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4042 right_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4043 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4044 if (right_end > logo.get_xlate_end()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4045 right_end = logo.get_xlate_end(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4046 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4047 right_start -= logo.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4048 right_end -= logo.get_xlate_start(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4049 if (right_end < right_start) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4050 right_start = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4051 right_end = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4052 right_divider = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4053 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4054 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4055 draw_trim_background(ctx, metrics, left_start, left_end, left_divider, right_start, right_end, right_divider); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4056 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4057 //draw letters |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4058 var xlate_col; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4059 for (xlate_col = logo.get_xlate_start(); xlate_col < logo.get_xlate_end(); xlate_col++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4060 ctx.translate(metrics.stack_pad_left,0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4061 col_index = Math.floor(xlate_col / logo.get_xlate_nsyms()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4062 if (xlate_col % logo.get_xlate_nsyms() == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4063 if (col_index >= offset && col_index < (offset + pspm.get_motif_length())) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4064 motif_position = col_index - offset; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4065 draw_stack_num(ctx, metrics, motif_position, raster); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4066 draw_stack(ctx, metrics, pspm.get_stack(motif_position, logo.alphabet, ssc), raster); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4067 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4068 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4069 if (col_index >= offset && col_index < (offset + pspm.get_motif_length())) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4070 ctx.save();// s5.1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4071 ctx.translate(0, Math.round(metrics.stack_height)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4072 // TODO draw a dot or dash or something to indicate continuity of the motif |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4073 ctx.restore(); //s5.1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4074 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4075 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4076 ctx.translate(Math.round(metrics.stack_width), 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4077 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4078 ctx.restore();//s5 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4079 ////optionally draw name if this is the last row but isn't the only row |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4080 if (draw_name && (logo.get_rows() != 1 && pspm_i == (logo.get_rows()-1))) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4081 //translate vertically past the stack and axis's |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4082 ctx.translate(0, metrics.y_num_height/2 + metrics.stack_height + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4083 Math.max(metrics.y_num_height/2, metrics.x_num_above + metrics.x_num_width + metrics.name_spacer)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4084 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4085 ctx.save();//s6 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4086 ctx.translate(metrics.summed_width/2, metrics.name_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4087 ctx.font = metrics.name_font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4088 ctx.textAlign = "center"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4089 ctx.fillText(pspm.name, 0, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4090 ctx.restore();//s6 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4091 ctx.translate(0, metrics.name_height); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4092 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4093 //translate vertically past the stack and axis's |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4094 ctx.translate(0, metrics.y_num_height/2 + metrics.stack_height + |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4095 Math.max(metrics.y_num_height/2, metrics.x_num_above + metrics.x_num_width)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4096 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4097 //if not the last row then add middle padding |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4098 if (pspm_i != (logo.get_rows() -1)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4099 ctx.translate(0, metrics.pad_middle); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4100 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4101 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4102 ctx.restore();//s7 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4103 if (logo.fine_text.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4104 ctx.translate(metrics.summed_width - metrics.pad_right, metrics.summed_height - metrics.pad_bottom); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4105 ctx.font = metrics.fine_txt_font; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4106 ctx.textAlign = "right"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4107 ctx.fillText(logo.fine_text, 0,0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4108 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4109 ctx.restore();//s2 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4110 ctx.restore();//s1 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4111 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4112 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4113 function create_canvas(c_width, c_height, c_id, c_title, c_display) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4114 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4115 var canvas = document.createElement("canvas"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4116 //check for canvas support before attempting anything |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4117 if (!canvas.getContext) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4118 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4119 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4120 var ctx = canvas.getContext('2d'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4121 //check for html5 text drawing support |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4122 if (!supports_text(ctx)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4123 return null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4124 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4125 //size the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4126 canvas.width = c_width; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4127 canvas.height = c_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4128 canvas.id = c_id; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4129 canvas.title = c_title; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4130 canvas.style.display = c_display; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4131 return canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4132 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4133 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4134 function logo_1(alphabet, fine_text, pspm) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4135 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4136 var logo = new Logo(alphabet, fine_text); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4137 logo.add_pspm(pspm); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4138 return logo; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4139 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4140 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4141 function logo_2(alphabet, fine_text, target, query, query_offset) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4142 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4143 var logo = new Logo(alphabet, fine_text); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4144 if (query_offset < 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4145 logo.add_pspm(target, -query_offset); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4146 logo.add_pspm(query); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4147 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4148 logo.add_pspm(target); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4149 logo.add_pspm(query, query_offset); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4150 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4151 return logo; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4152 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4153 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4154 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4155 * Specifies an alternate source for an image. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4156 * If the image with the image_id specified has |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4157 * not loaded then a generated logo will be used |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4158 * to replace it. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4159 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4160 * Note that the image must either have dimensions |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4161 * or a scale must be set. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4162 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4163 function alternate_logo(logo, image_id, scale) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4164 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4165 var image = document.getElementById(image_id); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4166 if (!image) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4167 alert("Can't find specified image id (" + image_id + ")"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4168 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4169 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4170 //if the image has loaded then there is no reason to use the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4171 if (image_ok(image)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4172 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4173 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4174 //the image has failed to load so replace it with a canvas if we can. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4175 var canvas = create_canvas(image.width, image.height, image_id, image.title, image.style.display); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4176 if (canvas === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4177 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4178 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4179 //draw the logo on the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4180 draw_logo_on_canvas(logo, canvas, null, scale); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4181 //replace the image with the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4182 image.parentNode.replaceChild(canvas, image); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4183 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4184 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4185 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4186 * Specifes that the element with the specified id |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4187 * should be replaced with a generated logo. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4188 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4189 function replace_logo(logo, replace_id, scale, title_txt, display_style) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4190 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4191 var element = document.getElementById(replace_id); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4192 if (!replace_id) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4193 alert("Can't find specified id (" + replace_id + ")"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4194 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4195 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4196 //found the element! |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4197 var canvas = create_canvas(50, 120, replace_id, title_txt, display_style); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4198 if (canvas === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4199 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4200 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4201 //draw the logo on the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4202 draw_logo_on_canvas(logo, canvas, null, scale); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4203 //replace the element with the canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4204 element.parentNode.replaceChild(canvas, element); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4205 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4206 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4207 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4208 * Fast string trimming implementation found at |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4209 * http://blog.stevenlevithan.com/archives/faster-trim-javascript |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4210 * |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4211 * Note that regex is good at removing leading space but |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4212 * bad at removing trailing space as it has to first go through |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4213 * the whole string. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4214 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4215 function trim (str) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4216 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4217 var ws, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4218 str = str.replace(/^\s\s*/, ''); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4219 ws = /\s/; i = str.length; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4220 while (ws.test(str.charAt(--i))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4221 return str.slice(0, i + 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4222 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4223 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4224 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4225 var current_motif = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4226 var dreme_alphabet = new Alphabet(data.alphabet, data.control_db.freqs); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4227 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4228 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4229 * Create a pspm for the given motif data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4230 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4231 function motif_pspm(m) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4232 return new Pspm(m.pwm, m.id, 0, 0, m.nsites, m.evalue); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4233 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4234 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4235 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4236 * Create a count matrix from the given motif data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4237 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4238 function motif_count_matrix(motif) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4239 return motif_pspm(motif).as_count_matrix(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4240 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4241 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4242 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4243 * Create a probablity matrix from the given motif data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4244 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4245 function motif_prob_matrix(motif) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4246 return motif_pspm(motif).as_probability_matrix(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4247 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4248 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4249 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4250 * Create a minimal meme format motif from the given motif data |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4251 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4252 function motif_minimal_meme(motif) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4253 return motif_pspm(motif).as_meme({ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4254 "with_header": true, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4255 "with_pspm": true, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4256 "with_pssm": false, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4257 "version": data["version"], |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4258 "alphabet": dreme_alphabet, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4259 "strands": (data.options.revcomp ? 2 : 1) |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4260 }); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4261 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4262 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4263 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4264 * Fill in a template variable |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4265 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4266 function set_tvar(template, tvar, value) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4267 var node; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4268 node = find_child(template, tvar); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4269 if (node === null) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4270 throw new Error("Template does not contain variable " + tvar); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4271 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4272 node.innerHTML = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4273 if (typeof value !== "object") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4274 node.appendChild(document.createTextNode(value)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4275 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4276 node.appendChild(value); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4277 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4278 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4279 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4280 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4281 * Make a canvas with the motif logo drawn on it. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4282 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4283 function make_logo(motif, height, rc) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4284 var pspm = new Pspm(motif["pwm"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4285 if (rc) pspm = pspm.copy().reverse_complement(dreme_alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4286 var logo = new Logo(dreme_alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4287 logo.add_pspm(pspm, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4288 var canvas = document.createElement('canvas'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4289 canvas.height = height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4290 canvas.width = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4291 draw_logo_on_canvas(logo, canvas, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4292 return canvas; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4293 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4294 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4295 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4296 * Create a button designed to contain a single symbol |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4297 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4298 function make_sym_btn(symbol, title, action) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4299 var box, sbox; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4300 box = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4301 box.tabIndex = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4302 box.className = "sym_btn"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4303 sbox = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4304 if (typeof symbol == "string") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4305 sbox.appendChild(document.createTextNode(symbol)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4306 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4307 sbox.appendChild(symbol); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4308 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4309 box.appendChild(sbox); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4310 box.title = title; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4311 box.addEventListener('click', action, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4312 box.addEventListener('keydown', action, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4313 return box; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4314 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4315 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4316 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4317 * Create a pair of text spans with different classes. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4318 * This is useful when using CSS to only display one of them. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4319 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4320 function text_pair(txt1, cls1, txt2, cls2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4321 var container, part1, part2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4322 container = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4323 part1 = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4324 part1.appendChild(document.createTextNode(txt1)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4325 part1.className = cls1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4326 container.appendChild(part1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4327 part2 = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4328 part2.appendChild(document.createTextNode(txt2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4329 part2.className = cls2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4330 container.appendChild(part2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4331 return container; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4332 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4333 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4334 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4335 * Make a colourised sequence. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4336 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4337 function make_seq(seq) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4338 var i, j, letter, lbox, sbox; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4339 sbox = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4340 for (i = 0; i < seq.length; i = j) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4341 letter = seq.charAt(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4342 for (j = i+1; j < seq.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4343 if (seq.charAt(j) !== letter) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4344 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4345 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4346 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4347 lbox = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4348 lbox.style.color = dreme_alphabet.get_colour(dreme_alphabet.get_index(letter)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4349 lbox.appendChild(document.createTextNode(seq.substring(i, j))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4350 sbox.appendChild(lbox); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4351 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4352 return sbox; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4353 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4354 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4355 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4356 * Create a description element taking into account the newlines in the source text. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4357 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4358 function make_description(text) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4359 var i, j, lines, p; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4360 var container = document.createElement("div"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4361 var paragraphs = text.split(/\n\n+/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4362 for (i = 0; i < paragraphs.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4363 lines = paragraphs[i].split(/\n/); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4364 p = document.createElement("p"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4365 p.appendChild(document.createTextNode(lines[0])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4366 for (j = 1; j < lines.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4367 p.appendChild(document.createElement("br")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4368 p.appendChild(document.createTextNode(lines[j])); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4369 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4370 container.appendChild(p); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4371 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4372 return container; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4373 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4374 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4375 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4376 * Make the table header for the discovered motifs. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4377 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4378 function make_motif_header() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4379 var row = document.createElement("tr"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4380 add_text_header_cell(row, "", "", "motif_ordinal"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4381 add_text_header_cell(row, "Motif", "pop_motifs_word", "motif_word"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4382 add_text_header_cell(row, "Logo", "pop_motifs_logo", "motif_logo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4383 if (data.options.revcomp) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4384 add_text_header_cell(row, "RC Logo", "pop_motifs_rc_logo", "motif_logo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4385 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4386 add_text_header_cell(row, "E-value", "pop_motifs_evalue", "motif_evalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4387 add_text_header_cell(row, "Unerased E-value", "pop_motifs_uevalue", "motif_evalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4388 add_text_header_cell(row, "More", "pop_more", "motif_more"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4389 add_text_header_cell(row, "Submit/Download", "pop_submit_dl", "motif_submit"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4390 row.className = "more"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4391 return row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4392 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4393 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4394 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4395 * Make a compact motif summary row for the discovered motifs. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4396 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4397 function make_motif_row(tbody, ordinal, motif) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4398 var row = document.createElement("tr"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4399 add_text_cell(row, "" + ordinal + ".", "motif_ordinal"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4400 add_text_cell(row, motif["id"], "motif_word"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4401 add_cell(row, make_logo(motif, 50, false), "motif_logo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4402 if (data.options.revcomp) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4403 add_cell(row, make_logo(motif, 50, true), "motif_logo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4404 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4405 add_text_cell(row, motif["evalue"], "motif_evalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4406 add_text_cell(row, motif["unerased_evalue"], "motif_evalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4407 add_cell(row, make_sym_btn(text_pair("\u21A7", "less", "\u21A5", "more"), "Show more information.", function(e) { toggle_class(tbody, "collapsed"); }, "\u21A5", ""), "motif_more"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4408 add_cell(row, make_sym_btn("\u21E2", "Submit the motif to another MEME Suite program or download it.", function(e) { action_show_outpop(e, ordinal); }), "motif_submit"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4409 return row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4410 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4411 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4412 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4413 * Make a sortable table of enriched matching rows. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4414 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4415 function make_motif_words(motif) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4416 var row, i, match; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4417 var table = document.createElement("table"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4418 var thead = document.createElement("thead"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4419 row = document.createElement("tr"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4420 add_text_header_cell(row, "Word", "pop_match_word", "match_word", function(e) {sort_table(this, compare_words);}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4421 add_text_header_cell(row, "Positives", "pop_match_pos", "match_count", function(e) {sort_table(this, compare_counts);}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4422 add_text_header_cell(row, "Negatives", "pop_match_neg", "match_count", function(e) {sort_table(this, compare_counts);}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4423 add_text_header_cell(row, "P-value", "pop_match_pval", "match_evalue", function(e) {sort_table(this, compare_evalues);}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4424 add_text_header_cell(row, "E-value", "pop_match_eval", "match_evalue", function(e) {sort_table(this, compare_evalues);}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4425 thead.appendChild(row); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4426 table.appendChild(thead); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4427 var tbody = document.createElement("tbody"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4428 for (i = 0; i < motif.matches.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4429 match = motif.matches[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4430 row = document.createElement("tr"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4431 add_cell(row, make_seq(match.seq), "match_word"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4432 add_text_cell(row, match.p + " / " + data.sequence_db.count, "match_count"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4433 add_text_cell(row, match.n + " / " + data.control_db.count, "match_count"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4434 add_text_cell(row, match.pvalue, "match_evalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4435 add_text_cell(row, match.evalue, "match_evalue"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4436 tbody.appendChild(row); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4437 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4438 table.appendChild(tbody); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4439 return table; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4440 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4441 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4442 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4443 * Make an expanded view of a discovered motif. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4444 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4445 function make_motif_exp(tbody, ordinal, motif) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4446 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4447 var box, pspm, logo_box; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4448 box = $("tmpl_motif_expanded").cloneNode(true); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4449 toggle_class(box, "template", false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4450 box.id = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4451 find_child(box, "tvar_logo").appendChild(make_logo(motif, 150, false)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4452 if (data.options.revcomp) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4453 find_child(box, "tvar_rclogo").appendChild(make_logo(motif, 150, true)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4454 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4455 set_tvar(box, "tvar_p", motif["p"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4456 set_tvar(box, "tvar_p_total", data.sequence_db.count); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4457 set_tvar(box, "tvar_n", motif["n"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4458 set_tvar(box, "tvar_n_total", data.control_db.count); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4459 set_tvar(box, "tvar_pvalue", motif["pvalue"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4460 set_tvar(box, "tvar_evalue", motif["evalue"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4461 set_tvar(box, "tvar_uevalue", motif["unerased_evalue"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4462 set_tvar(box, "tvar_words", make_motif_words(motif)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4463 var cell = document.createElement("td"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4464 cell.colSpan = 8; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4465 cell.appendChild(box); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4466 var row = document.createElement("tr"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4467 row.className = "more"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4468 row.appendChild(cell); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4469 return row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4470 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4471 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4472 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4473 * Convert a string containing a scientific number into the log of that number |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4474 * without having an intermediate representation of the number. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4475 * This is intended to avoid underflow problems with the tiny evalues that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4476 * MEME and DREME can create. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4477 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4478 function sci2log(scinum) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4479 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4480 var ev_re, match, sig, exp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4481 ev_re = /^(.*)e(.*)$/; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4482 if (match = ev_re.exec(scinum)) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4483 sig = parseFloat(match[1]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4484 exp = parseInt(match[2]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4485 return Math.log(sig) + (exp * Math.log(10)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4486 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4487 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4488 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4489 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4490 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4491 * Create a table of discovered motifs. A fresh table body is used for each |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4492 * motif to make hiding/showing rows with css easier. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4493 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4494 function make_motifs() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4495 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4496 var i, row, tbody, motif, ordinal; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4497 // make the motifs table |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4498 var container = $("motifs"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4499 container.innerHTML = ""; // clear content |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4500 var table = document.createElement("table"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4501 // add a header that is always shown |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4502 var thead = document.createElement("thead"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4503 thead.appendChild(make_motif_header()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4504 table.appendChild(thead); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4505 for (i = 0; i < data.motifs.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4506 ordinal = i + 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4507 motif = data.motifs[i]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4508 tbody = document.createElement("tbody"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4509 tbody.className = "collapsed"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4510 tbody.appendChild(make_motif_row(tbody, ordinal, motif)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4511 tbody.appendChild(make_motif_exp(tbody, ordinal, motif)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4512 // create a following header for every row except the last one |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4513 if ((i + 1) < data.motifs.length) tbody.appendChild(make_motif_header()); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4514 table.appendChild(tbody); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4515 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4516 container.appendChild(table); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4517 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4518 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4519 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4520 * Create a table showing all the alphabet symbols, their names and frequencies. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4521 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4522 function make_alpha_bg(alph, freqs) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4523 function colour_symbol(index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4524 var span = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4525 span.appendChild(document.createTextNode(alph.get_symbol(index))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4526 span.style.color = alph.get_colour(index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4527 span.className = "alpha_symbol"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4528 return span; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4529 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4530 var table, thead, tbody, row, th, span, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4531 // create table |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4532 table = document.createElement("table"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4533 table.className = "inputs"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4534 // create header |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4535 thead = document.createElement("thead"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4536 table.appendChild(thead); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4537 row = thead.insertRow(thead.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4538 if (alph.has_complement()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4539 add_text_header_cell(row, "Name", "pop_alph_name"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4540 add_text_header_cell(row, "Bg.", "pop_alph_control"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4541 add_text_header_cell(row, ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4542 add_text_header_cell(row, ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4543 add_text_header_cell(row, ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4544 add_text_header_cell(row, "Bg.", "pop_alph_control"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4545 add_text_header_cell(row, "Name", "pop_alph_name"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4546 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4547 add_text_header_cell(row, ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4548 add_text_header_cell(row, "Name", "pop_alph_name"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4549 add_text_header_cell(row, "Bg.", "pop_alph_control"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4550 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4551 // add alphabet entries |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4552 tbody = document.createElement("tbody"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4553 table.appendChild(tbody); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4554 if (alph.has_complement()) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4555 for (i = 0; i < alph.get_size_core(); i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4556 var c = alph.get_complement(i); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4557 if (i > c) continue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4558 row = tbody.insertRow(tbody.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4559 add_text_cell(row, alph.get_name(i)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4560 add_text_cell(row, "" + freqs[i].toFixed(3)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4561 add_cell(row, colour_symbol(i)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4562 add_text_cell(row, "~"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4563 add_cell(row, colour_symbol(c)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4564 add_text_cell(row, "" + freqs[c].toFixed(3)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4565 add_text_cell(row, alph.get_name(c)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4566 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4567 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4568 for (i = 0; i < alph.get_size_core(); i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4569 row = tbody.insertRow(tbody.rows.length); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4570 add_cell(row, colour_symbol(i)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4571 add_text_cell(row, alph.get_name(i)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4572 add_text_cell(row, "" + freqs[i].toFixed(3)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4573 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4574 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4575 return table; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4576 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4577 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4578 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4579 * Updates the format download text in the popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4580 * This is called when either the format or current motif changes. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4581 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4582 function update_outpop_format(index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4583 var motif = data.motifs[index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4584 var fn = [motif_count_matrix, motif_prob_matrix, motif_minimal_meme]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4585 var suffix = ["_counts.txt", "_freqs.txt", ".meme"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4586 var format = parseInt($("text_format").value); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4587 var text = fn[format](motif); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4588 prepare_download(text, "text/plain", motif.id + suffix[format], $("outpop_text_dl")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4589 $("outpop_text").value = text; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4590 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4591 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4592 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4593 * Updates the motif logos and format download text in the popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4594 * This is called whenever the current motif changes. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4595 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4596 function update_outpop_motif(index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4597 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4598 var motifs, motif, pspm, logo, canvas, num; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4599 motifs = data["motifs"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4600 if (index < 0 || index >= motifs.length) {return;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4601 current_motif = index; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4602 motif = motifs[index]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4603 pspm = new Pspm(motif["pwm"]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4604 logo = new Logo(dreme_alphabet, ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4605 logo.add_pspm(pspm, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4606 canvas = $("outpop_logo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4607 canvas.width = canvas.width; // clear canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4608 draw_logo_on_canvas(logo, canvas, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4609 canvas = $("outpop_logo_rc"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4610 canvas.width = canvas.width; // clear rc canvas |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4611 if (data.options.revcomp) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4612 pspm.reverse_complement(dreme_alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4613 logo = new Logo(dreme_alphabet, ""); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4614 logo.add_pspm(pspm, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4615 draw_logo_on_canvas(logo, canvas, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4616 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4617 num = $("outpop_num"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4618 num.innerHTML = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4619 num.appendChild(document.createTextNode("" + (index + 1))); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4620 update_outpop_format(index); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4621 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4622 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4623 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4624 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4625 * Initialise and display the download popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4626 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4627 function action_show_outpop(e, ordinal) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4628 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4629 function init() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4630 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4631 var close_btn, next_btn, prev_btn, cancel_btn, do_btn; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4632 var tab1, tab2, tab3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4633 var pnl1, pnl2, pnl3; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4634 var format_list; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4635 var tbl_submit, inputs, i, default_prog; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4636 close_btn = $("outpop_close"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4637 close_btn.addEventListener("click", action_hide_outpop, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4638 close_btn.addEventListener("keydown", action_hide_outpop, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4639 next_btn = $("outpop_next"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4640 next_btn.addEventListener("click", action_outpop_next, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4641 next_btn.addEventListener("keydown", action_outpop_next, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4642 prev_btn = $("outpop_prev"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4643 prev_btn.addEventListener("click", action_outpop_prev, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4644 prev_btn.addEventListener("keydown", action_outpop_prev, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4645 cancel_btn = $("outpop_cancel"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4646 cancel_btn.addEventListener("click", action_hide_outpop, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4647 do_btn = $("outpop_do"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4648 do_btn.addEventListener("click", action_outpop_submit, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4649 tab1 = $("outpop_tab_1"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4650 tab1.tabIndex = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4651 tab1.addEventListener("click", action_outpop_tab, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4652 tab1.addEventListener("keydown", action_outpop_tab, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4653 tab2 = $("outpop_tab_2"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4654 tab2.tabIndex = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4655 tab2.addEventListener("click", action_outpop_tab, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4656 tab2.addEventListener("keydown", action_outpop_tab, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4657 tab3 = $("outpop_tab_3"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4658 tab3.tabIndex = 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4659 tab3.addEventListener("click", action_outpop_tab, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4660 tab3.addEventListener("keydown", action_outpop_tab, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4661 pnl1 = $("outpop_pnl_1"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4662 pnl2 = $("outpop_pnl_2"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4663 pnl3 = $("outpop_pnl_3"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4664 toggle_class(tab1, "activeTab", true); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4665 toggle_class(tab2, "activeTab", false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4666 toggle_class(tab3, "activeTab", false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4667 pnl1.style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4668 pnl2.style.display = "none"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4669 pnl3.style.display = "none"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4670 format_list = $("text_format"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4671 format_list.addEventListener("change", action_outpop_format, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4672 // setup program selection |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4673 tbl_submit = $("programs"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4674 // when not dna, hide the inputs for programs that require dna motifs |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4675 toggle_class(tbl_submit, "alphabet_dna", dreme_alphabet.has_complement());//TODO FIXME alphabet_dna is a bad name for a field when allowing custom alphabets |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4676 // add a click listener for the radio buttons |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4677 inputs = tbl_submit.querySelectorAll("input[type='radio']"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4678 for (i = 0; i < inputs.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4679 inputs[i].addEventListener("click", action_outpop_program, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4680 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4681 // ensure that a default program option is selected for DNA and Protein |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4682 default_prog = document.getElementById(dreme_alphabet.has_complement() ? "submit_tomtom" : "submit_fimo"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4683 default_prog.checked = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4684 action_outpop_program.call(default_prog); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4685 // disable reverse-complement when not DNA |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4686 $("logo_rc_option").disabled = !dreme_alphabet.has_complement(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4687 // set errorbars on when ssc is on |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4688 $("logo_ssc").addEventListener("change", action_outpop_ssc, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4689 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4690 // store the focused element |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4691 action_hide_outpop.last_active = document.activeElement; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4692 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4693 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4694 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4695 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4696 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4697 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4698 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4699 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4700 // hide the help popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4701 help_popup(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4702 // on first load initilize the popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4703 if (!action_show_outpop.ready) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4704 init(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4705 action_show_outpop.ready = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4706 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4707 update_outpop_motif(ordinal - 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4708 // display the download popup |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4709 $("grey_out_page").style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4710 $("download").style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4711 $("outpop_close").focus(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4712 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4713 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4714 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4715 * Hide the download popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4716 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4717 function action_hide_outpop(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4718 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4719 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4720 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4721 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4722 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4723 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4724 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4725 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4726 $("download").style.display = "none"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4727 $("grey_out_page").style.display = "none"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4728 if (typeof action_hide_outpop.last_active !== "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4729 action_hide_outpop.last_active.focus(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4730 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4731 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4732 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4733 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4734 * Show the next motif in the download popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4735 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4736 function action_outpop_next(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4737 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4738 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4739 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4740 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4741 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4742 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4743 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4744 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4745 update_outpop_motif(current_motif + 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4746 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4747 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4748 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4749 * Show the previous motif in the download popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4750 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4751 function action_outpop_prev(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4752 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4753 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4754 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4755 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4756 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4757 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4758 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4759 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4760 update_outpop_motif(current_motif - 1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4761 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4762 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4763 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4764 * Highlight the selected row in the program list. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4765 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4766 function action_outpop_program() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4767 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4768 var table, tr, rows, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4769 tr = find_parent_tag(this, "TR"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4770 table = find_parent_tag(tr, "TABLE"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4771 rows = table.querySelectorAll("tr"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4772 for (i = 0; i < rows.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4773 toggle_class(rows[i], "selected", rows[i] === tr); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4774 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4775 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4776 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4777 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4778 * Enable error bars when small sample correction is enabled. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4779 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4780 function action_outpop_ssc() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4781 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4782 $("logo_err").value = $("logo_ssc").value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4783 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4784 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4785 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4786 * Submit the motif to the selected program. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4787 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4788 function action_outpop_submit(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4789 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4790 var form, input, program, motifs; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4791 // find out which program is selected |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4792 var radios, i; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4793 radios = document.getElementsByName("program"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4794 program = "fimo"; // default to fimo, since it works with all alphabet types |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4795 for (i = 0; i < radios.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4796 if (radios[i].checked) program = radios[i].value; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4797 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4798 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4799 motifs = motif_minimal_meme(data.motifs[current_motif]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4800 form = document.createElement("form"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4801 form.setAttribute("method", "post"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4802 form.setAttribute("action", site_url + "/tools/" + program); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4803 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4804 input = document.createElement("input"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4805 input.setAttribute("type", "hidden"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4806 input.setAttribute("name", "motifs_embed"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4807 input.setAttribute("value", motifs); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4808 form.appendChild(input); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4809 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4810 document.body.appendChild(form); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4811 form.submit(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4812 document.body.removeChild(form); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4813 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4814 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4815 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4816 * Download the format text. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4817 * Wire the link containing the data URI text to a download button so it looks |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4818 * the same as the server submit stuff. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4819 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4820 function action_outpop_download_motif(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4821 $("outpop_text_dl").click(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4822 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4823 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4824 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4825 * Download the motif logo. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4826 * The EPS format can be calculated locally in Javascript |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4827 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4828 function action_outpop_download_logo(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4829 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4830 var pspm, logo, eps; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4831 var logo_rc, logo_ssc, logo_width, logo_height; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4832 var motif = data.motifs[current_motif]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4833 if ($("logo_format").value == "0") { // EPS |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4834 logo_rc = ($("logo_rc").value == "1"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4835 logo_ssc = ($("logo_ssc").value == "1"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4836 logo_width = parseFloat($("logo_width").value); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4837 if (isNaN(logo_width) || !isFinite(logo_width) || logo_width <= 0) logo_width = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4838 logo_height = parseFloat($("logo_height").value); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4839 if (isNaN(logo_height) || !isFinite(logo_height) || logo_height <= 0) logo_height = null; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4840 // create a PSPM from the motif |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4841 pspm = motif_pspm(motif); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4842 if (logo_rc) pspm.reverse_complement(dreme_alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4843 logo = new Logo(dreme_alphabet); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4844 logo.add_pspm(pspm, 0); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4845 eps = logo.as_eps({"ssc": logo_ssc, "logo_width": logo_width, "logo_height": logo_height}); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4846 prepare_download(eps, "application/postscript", motif.id + ".eps"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4847 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4848 $("logo_motifs").value = motif_minimal_meme(motif); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4849 $("logo_form").submit(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4850 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4851 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4852 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4853 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4854 * Change the selected tab in the download popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4855 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4856 function action_outpop_tab(e) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4857 "use strict"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4858 var tab1, tab2, tab3, pnl1, pnl2, pnl3, do_btn; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4859 if (!e) e = window.event; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4860 if (e.type === "keydown") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4861 if (e.keyCode !== 13 && e.keyCode !== 32) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4862 return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4863 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4864 // stop a submit or something like that |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4865 e.preventDefault(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4866 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4867 tab1 = $("outpop_tab_1"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4868 tab2 = $("outpop_tab_2"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4869 tab3 = $("outpop_tab_3"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4870 pnl1 = $("outpop_pnl_1"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4871 pnl2 = $("outpop_pnl_2"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4872 pnl3 = $("outpop_pnl_3"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4873 do_btn = $("outpop_do"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4874 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4875 toggle_class(tab1, "activeTab", (this === tab1)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4876 toggle_class(tab2, "activeTab", (this === tab2)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4877 toggle_class(tab3, "activeTab", (this === tab3)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4878 pnl1.style.display = ((this === tab1) ? "block" : "none"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4879 pnl2.style.display = ((this === tab2) ? "block" : "none"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4880 pnl3.style.display = ((this === tab3) ? "block" : "none"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4881 do_btn.value = ((this === tab1) ? "Submit" : "Download"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4882 do_btn.removeEventListener("click", action_outpop_submit, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4883 do_btn.removeEventListener("click", action_outpop_download_logo, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4884 do_btn.removeEventListener("click", action_outpop_download_motif, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4885 if (this === tab1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4886 do_btn.addEventListener("click", action_outpop_submit, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4887 } else if (this === tab2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4888 do_btn.addEventListener("click", action_outpop_download_motif, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4889 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4890 do_btn.addEventListener("click", action_outpop_download_logo, false); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4891 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4892 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4893 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4894 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4895 * Update the text in the download format popup. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4896 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4897 function action_outpop_format() { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4898 update_outpop_format(current_motif); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4899 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4900 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4901 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4902 * Find all text nodes in the given container. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4903 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4904 function text_nodes(container) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4905 var textNodes = []; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4906 var stack = [container]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4907 // depth first search to maintain ordering when flattened |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4908 while (stack.length > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4909 var node = stack.pop(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4910 if (node.nodeType == Node.TEXT_NODE) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4911 textNodes.push(node); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4912 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4913 for (var i = node.childNodes.length-1; i >= 0; i--) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4914 stack.push(node.childNodes[i]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4915 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4916 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4917 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4918 return textNodes; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4919 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4920 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4921 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4922 * Get the text out of a specific text node. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4923 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4924 function node_text(node) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4925 if (node === undefined) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4926 return ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4927 } else if (node.textContent) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4928 return node.textContent; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4929 } else if (node.innerText) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4930 return node.innerText; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4931 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4932 return ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4933 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4934 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4935 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4936 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4937 * Get the text contained within the element. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4938 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4939 function elem_text(elem, separator) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4940 if (separator === undefined) separator = ''; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4941 return text_nodes(elem).map(node_text).join(separator); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4942 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4943 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4944 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4945 * Sort all rows in the first table body based on the column of the given element and the comparison function. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4946 * The sort is not very fast and is intended for small tables only. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4947 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4948 function sort_table(colEle, compare_function) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4949 //find the parent of colEle that is either a td or th |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4950 var i, j; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4951 var cell = colEle; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4952 while (true) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4953 if (cell == null) return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4954 if (cell.nodeType == Node.ELEMENT_NODE && |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4955 (cell.tagName.toLowerCase() == "td" || cell.tagName.toLowerCase() == "th")) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4956 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4957 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4958 cell = cell.parentNode; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4959 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4960 //find the parent of cell that is a tr |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4961 var row = cell; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4962 while (true) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4963 if (row == null) return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4964 if (row.nodeType == Node.ELEMENT_NODE && row.tagName.toLowerCase() == "tr") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4965 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4966 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4967 row = row.parentNode; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4968 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4969 //find the parent of row that is a table |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4970 var table = row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4971 while (true) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4972 if (table == null) return; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4973 if (table.nodeType == Node.ELEMENT_NODE && table.tagName.toLowerCase() == "table") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4974 break; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4975 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4976 table = table.parentNode; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4977 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4978 var column_index = cell.cellIndex; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4979 // do a bubble sort, because the tables are so small it doesn't matter |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4980 var change; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4981 var trs = table.tBodies[0].getElementsByTagName('tr'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4982 var already_sorted = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4983 var reverse = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4984 while (true) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4985 do { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4986 change = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4987 for (i = 0; i < trs.length -1; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4988 var v1 = elem_text(trs[i].cells[column_index]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4989 var v2 = elem_text(trs[i+1].cells[column_index]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4990 if (reverse) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4991 var tmp = v1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4992 v1 = v2; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4993 v2 = tmp; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4994 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4995 if (compare_function(v1, v2) > 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4996 exchange(trs[i], trs[i+1], table); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4997 change = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4998 already_sorted = false; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
4999 trs = table.tBodies[0].getElementsByTagName('tr'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5000 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5001 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5002 } while (change); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5003 if (reverse) break;// we've sorted twice so exit |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5004 if (!already_sorted) break;// sort did something so exit |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5005 // when it's sorted one way already then sort the opposite way |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5006 reverse = true; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5007 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5008 // put arrows on the headers |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5009 var headers = table.tHead.getElementsByTagName('tr'); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5010 for (i = 0; i < headers.length; i++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5011 for (j = 0; j < headers[i].cells.length; j++) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5012 var cell = headers[i].cells[j]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5013 var arrows = cell.getElementsByClassName("sort_arrow"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5014 var arrow; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5015 if (arrows.length == 0) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5016 arrow = document.createElement("span"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5017 arrow.className = "sort_arrow"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5018 cell.insertBefore(arrow, cell.firstChild); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5019 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5020 arrow = arrows[0]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5021 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5022 arrow.innerHTML = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5023 if (j == column_index) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5024 arrow.appendChild(document.createTextNode(reverse ? "\u25B2" : "\u25BC")); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5025 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5026 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5027 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5028 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5029 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5030 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5031 * Swap two rows in a table. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5032 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5033 function exchange(oRowI, oRowJ, oTable) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5034 var i = oRowI.rowIndex; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5035 var j = oRowJ.rowIndex; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5036 if (i == j+1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5037 oTable.tBodies[0].insertBefore(oRowI, oRowJ); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5038 } if (j == i+1) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5039 oTable.tBodies[0].insertBefore(oRowJ, oRowI); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5040 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5041 var tmpNode = oTable.tBodies[0].replaceChild(oRowI, oRowJ); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5042 if(typeof(oRowI) != "undefined") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5043 oTable.tBodies[0].insertBefore(tmpNode, oRowI); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5044 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5045 oTable.appendChild(tmpNode); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5046 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5047 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5048 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5049 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5050 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5051 * Compare two E-values which may be very small. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5052 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5053 function compare_evalues(v1, v2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5054 var e1 = sci2log(v1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5055 var e2 = sci2log(v2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5056 if (e1 < e2) return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5057 else if (e1 > e2) return 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5058 return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5059 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5060 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5061 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5062 * Compare two counts. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5063 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5064 function compare_counts(v1, v2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5065 var re = /(\d+)\s*\/\s*\d+/; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5066 var m1 = re.exec(v1); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5067 var m2 = re.exec(v2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5068 if (m1 == null && m2 == null) return 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5069 if (m1 == null) return -1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5070 if (m2 == null) return 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5071 return parseInt(m2[1]) - parseInt(m1[1]); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5072 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5073 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5074 /* |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5075 * Compare two sequence words. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5076 */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5077 function compare_words(v1, v2) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5078 return v1.localeCompare(v2); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5079 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5080 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5081 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5082 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5083 <style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5084 /* The following is the content of meme.css */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5085 body { background-color:white; font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5086 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5087 div.help { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5088 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5089 margin: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5090 padding: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5091 width: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5092 height: 13px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5093 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5094 background-image: url(data:image/gif;base64,R0lGODlhDAANAIABANR0AP///yH5BAEAAAEALAAAAAAMAA0AAAIdhI8Xy22MIFgv1DttrrJ7mlGNNo4c+aFg6SQuUAAAOw==); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5095 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5096 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5097 div.help:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5098 background-image: url(data:image/gif;base64,R0lGODlhDAANAKEAANR0AP///9R0ANR0ACH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEAAAIALAAAAAAMAA0AAAIdDGynCe3PgoxONntvwqz2/z2K2ImjR0KhmSIZUgAAOw==); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5099 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5100 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5101 p.spaced { line-height: 1.8em;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5102 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5103 span.citation { font-family: "Book Antiqua", "Palatino Linotype", serif; color: #004a4d;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5104 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5105 p.pad { padding-left: 30px; padding-top: 5px; padding-bottom: 10px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5106 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5107 td.jump { font-size: 13px; color: #ffffff; background-color: #00666a; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5108 font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5109 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5110 a.jump { margin: 15px 0 0; font-style: normal; font-variant: small-caps; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5111 font-weight: bolder; font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5112 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5113 h2.mainh {font-size: 1.5em; font-style: normal; margin: 15px 0 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5114 font-variant: small-caps; font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5115 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5116 h2.line {border-bottom: 1px solid #CCCCCC; font-size: 1.5em; font-style: normal; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5117 margin: 15px 0 0; padding-bottom: 3px; font-variant: small-caps; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5118 font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5119 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5120 h4 {border-bottom: 1px solid #CCCCCC; font-size: 1.2em; font-style: normal; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5121 margin: 10px 0 0; padding-bottom: 3px; font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5122 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5123 h5 {margin: 0px} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5124 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5125 a.help { font-size: 9px; font-style: normal; text-transform: uppercase; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5126 font-family: Georgia, "Times New Roman", Times, serif;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5127 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5128 div.pad { padding-left: 30px; padding-top: 5px; padding-bottom: 10px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5129 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5130 div.pad1 { margin: 10px 5px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5131 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5132 div.pad2 { margin: 25px 5px 5px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5133 h2.pad2 { padding: 25px 5px 5px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5134 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5135 div.pad3 { padding: 5px 0px 10px 30px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5136 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5137 div.box { border: 2px solid #CCCCCC; padding:10px; overflow: hidden;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5138 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5139 div.bar { border-left: 7px solid #00666a; padding:5px; margin-top:25px; } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5140 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5141 div.subsection {margin:25px 0px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5142 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5143 img {border:0px none;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5144 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5145 th.majorth {text-align:left;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5146 th.minorth {font-weight:normal; text-align:left; width:8em; padding: 3px 0px;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5147 th.actionth {font-weight:normal; text-align:left;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5148 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5149 .explain h5 {font-size:1em; margin-left: 1em;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5150 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5151 div.doc {margin-left: 2em; margin-bottom: 3em;} |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5152 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5153 th.trainingset { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5154 border-bottom: thin dashed black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5155 font-weight:normal; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5156 padding:0px 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5157 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5158 div.pop_content { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5159 position:absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5160 z-index:50; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5161 width:300px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5162 padding: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5163 background: #E4ECEC; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5164 font-size: 12px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5165 font-family: Arial; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5166 border-style: double; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5167 border-width: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5168 border-color: #AA2244; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5169 display:none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5170 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5171 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5172 div.pop_content > *:first-child { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5173 margin-top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5174 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5175 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5176 div.pop_content h1, div.pop_content h2, div.pop_content h3, div.pop_content h4, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5177 div.pop_content h5, div.pop_content h6, div.pop_content p { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5178 margin: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5179 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5180 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5181 div.pop_content p + h1, div.pop_content p + h2, div.pop_content p + h3, |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5182 div.pop_content p + h4, div.pop_content p + h5, div.pop_content p + h6 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5183 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5184 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5185 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5186 div.pop_content p + p { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5187 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5188 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5189 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5190 div.pop_content > *:last-child { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5191 margin-bottom: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5192 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5193 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5194 div.pop_content div.pop_close { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5195 /* old definition */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5196 float:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5197 bottom: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5198 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5199 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5200 div.pop_content span.pop_close, div.pop_content span.pop_back { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5201 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5202 border: 2px outset #661429; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5203 background-color: #CCC; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5204 padding-left: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5205 padding-right: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5206 padding-top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5207 padding-bottom: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5208 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5209 color: #AA2244; /*#661429;*/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5210 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5211 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5212 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5213 div.pop_content span.pop_close:active, div.pop_content span.pop_back:active { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5214 border-style: inset; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5215 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5216 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5217 div.pop_content span.pop_close { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5218 float:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5219 /*border: 2px outset #AA002B;*/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5220 /*color: #AA2244;*/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5221 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5222 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5223 div.pop_content:not(.nested) .nested_only { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5224 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5225 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5226 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5227 div.pop_back_sec { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5228 margin-bottom: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5229 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5230 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5231 div.pop_close_sec { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5232 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5233 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5234 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5235 table.hide_advanced tr.advanced { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5236 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5237 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5238 span.show_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5239 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5240 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5241 table.hide_advanced span.show_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5242 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5243 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5244 table.hide_advanced span.show_less { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5245 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5246 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5247 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5248 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5249 /***************************************************************************** |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5250 * Program logo styling |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5251 ****************************************************************************/ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5252 div.prog_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5253 border-bottom: 0.25em solid #0f5f60; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5254 height: 4.5em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5255 width: 24em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5256 display:inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5257 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5258 div.prog_logo img { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5259 float:left; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5260 width: 4em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5261 border-style: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5262 margin-right: 0.2em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5263 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5264 div.prog_logo h1, div.prog_logo h1:hover, div.prog_logo h1:active, div.prog_logo h1:visited { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5265 margin:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5266 padding:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5267 font-family: Arial, Helvetica, sans-serif; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5268 font-size: 3.2em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5269 line-height: 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5270 vertical-align: top; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5271 display: block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5272 color: #026666; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5273 letter-spacing: -0.06em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5274 text-shadow: 0.04em 0.06em 0.05em #666; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5275 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5276 div.prog_logo h2, div.prog_logo h2:hover, div.prog_logo h2:active, div.prog_logo h2:visited { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5277 display: block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5278 margin:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5279 padding:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5280 font-family: Helvetica, sans-serif; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5281 font-size: 0.9em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5282 line-height: 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5283 letter-spacing: -0.06em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5284 color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5285 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5286 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5287 div.big.prog_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5288 font-size: 18px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5289 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5290 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5291 </style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5292 <style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5293 /* dreme output specific css */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5294 div.header { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5295 position: relative; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5296 overflow: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5297 margin-top: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5298 margin-bottom: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5299 margin-right: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5300 margin-left: 3px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5301 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5302 div.header > h2 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5303 font-size: 1.5em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5304 font-style: normal; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5305 margin: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5306 font-variant: small-caps; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5307 font-family: Georgia, "Times New Roman", Times, serif; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5308 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5309 div.header > span { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5310 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5311 right: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5312 bottom: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5313 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5314 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5315 div.template { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5316 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5317 z-index: 1; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5318 left: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5319 top: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5320 visibility: hidden; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5321 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5322 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5323 div.sym_btn { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5324 display:inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5325 text-decoration: underline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5326 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5327 font-size: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5328 line-height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5329 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5330 width: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5331 height: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5332 color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5333 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5334 div.sym_btn:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5335 color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5336 background-color: blue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5337 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5338 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5339 div.sym_btn.positioned { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5340 position: absolute; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5341 top: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5342 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5343 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5344 div.box + div.box { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5345 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5346 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5347 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5348 th.motif_ordinal { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5349 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5350 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5351 td.motif_ordinal { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5352 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5353 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5354 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5355 font-size: large; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5356 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5357 th.motif_word { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5358 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5359 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5360 td.motif_word { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5361 font-size:15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5362 font-family: 'Courier New', Courier, monospace; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5363 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5364 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5365 th.motif_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5366 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5367 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5368 td.motif_logo { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5369 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5370 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5371 th.motif_evalue { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5372 text-align:right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5373 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5374 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5375 td.motif_evalue { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5376 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5377 white-space: nowrap; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5378 padding-right: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5379 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5380 th.motif_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5381 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5382 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5383 td.motif_more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5384 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5385 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5386 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5387 th.motif_submit { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5388 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5389 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5390 td.motif_submit { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5391 text-align: center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5392 padding: 0 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5393 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5394 th.match_word { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5395 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5396 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5397 td.match_word { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5398 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5399 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5400 font-size: large; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5401 font-family: 'Courier New', Courier, monospace; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5402 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5403 th.match_evalue, th.match_count { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5404 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5405 padding-right: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5406 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5407 td.match_evalue, td.match_count { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5408 text-align: right; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5409 white-space: nowrap; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5410 padding-right: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5411 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5412 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5413 div.tabArea { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5414 font-size: 80%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5415 font-weight: bold; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5416 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5417 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5418 .norc div.tabArea { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5419 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5420 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5421 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5422 span.tab, span.tab:visited { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5423 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5424 color: #888; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5425 background-color: #ddd; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5426 border: 2px solid #ccc; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5427 padding: 2px 1em; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5428 text-decoration: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5429 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5430 span.tab.middle { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5431 border-left-width: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5432 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5433 div.tabArea.base span.tab { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5434 border-top-width: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5435 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5436 div.tabArea.top span.tab { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5437 border-bottom-width: 0px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5438 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5439 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5440 span.tab:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5441 background-color: #bbb; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5442 border-color: #bbb; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5443 color: #666; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5444 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5445 span.tab.activeTab, span.tab.activeTab:hover, span.tab.activeTab:visited { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5446 background-color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5447 color: black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5448 cursor: default; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5449 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5450 div.tabMain { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5451 border: 2px solid #ccc; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5452 background-color: white; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5453 padding: 10px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5454 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5455 div.tabMain.base { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5456 margin-top: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5457 display: inline-block; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5458 max-width: 98%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5459 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5460 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5461 div.tabMain.top { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5462 margin-bottom: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5463 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5464 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5465 div.grey_background { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5466 position:fixed; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5467 z-index: 8; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5468 background-color: #000; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5469 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5470 opacity: 0.5; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5471 left: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5472 top: 0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5473 width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5474 height: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5475 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5476 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5477 div.popup_wrapper { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5478 position:fixed; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5479 z-index:9; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5480 width:100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5481 height:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5482 top:50%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5483 left:0; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5484 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5485 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5486 div.popup { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5487 width: 600px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5488 z-index:9; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5489 margin-left: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5490 margin-right: auto; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5491 padding: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5492 background-color: #FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5493 border-style: double; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5494 border-width: 5px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5495 border-color: #00666a; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5496 position:relative; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5497 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5498 div.close { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5499 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5500 border: 1px solid black; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5501 width:15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5502 height:15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5503 line-height:15px; /* this causes vertical centering */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5504 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5505 background-color:#FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5506 color:#000; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5507 font-size:15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5508 font-family:monospace; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5509 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5510 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5511 div.close:hover { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5512 color:#FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5513 background-color:#000; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5514 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5515 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5516 div.navnum { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5517 width:100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5518 height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5519 line-height:20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5520 text-align:center; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5521 font-size:medium; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5522 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5523 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5524 div.navarrow { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5525 font-size: 30px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5526 text-decoration:none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5527 cursor: pointer; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5528 -moz-user-select: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5529 -webkit-user-select: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5530 -ms-user-select: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5531 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5532 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5533 div.navarrow > span.inactive { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5534 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5535 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5536 div.navarrow > span.active { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5537 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5538 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5539 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5540 div.navarrow:hover > span.active { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5541 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5542 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5543 div.navarrow:hover > span.inactive { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5544 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5545 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5546 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5547 table.programs { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5548 width: 100%; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5549 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5550 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5551 table.programs tr { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5552 background-color: #EFE; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5553 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5554 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5555 table.programs tr.selected { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5556 background-color: #262; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5557 color: #FFF; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5558 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5559 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5560 table.programs tr.dna_only { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5561 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5562 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5563 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5564 table.programs.alphabet_dna tr.dna_only { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5565 display: table-row; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5566 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5567 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5568 table.inputs { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5569 margin-top: 20px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5570 border-collapse:collapse; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5571 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5572 table.inputs * td, table.inputs * th { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5573 padding-left: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5574 padding-right: 15px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5575 padding-top: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5576 padding-bottom: 1px; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5577 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5578 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5579 /* program settings */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5580 span.strand_none, span.strand_given, span.strand_both { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5581 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5582 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5583 td.none span.strand_none, td.given span.strand_given, td.both span.strand_both { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5584 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5585 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5586 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5587 /* show the expanded motif only when the collapsed one is hidden */ |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5588 tbody *.less, tbody.collapsed *.more { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5589 display: none; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5590 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5591 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5592 tbody.collapsed *.less { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5593 display: inline; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5594 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5595 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5596 </style> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5597 </head> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5598 <body data-scrollpad="true"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5599 <!-- --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5600 <div id="grey_out_page" class="grey_background" style="display:none;"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5601 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5602 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5603 <!-- Help popups --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5604 <div class="pop_content" id="pop_"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5605 <p>Help poup.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5606 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5607 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5608 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5609 <div class="pop_content" id="pop_motifs_word"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5610 <p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5611 The name of the motif uses the IUPAC codes for nucleotides which has |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5612 a different letter to represent each of the 15 possible combinations. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5613 </p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5614 <p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5615 The name is itself a representation of the motif though the position |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5616 weight matrix is not directly equalivant as it is generated from the |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5617 sites found that matched the letters given in the name. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5618 </p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5619 <p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5620 <a id="doc_alphabets_url" href="#"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5621 Read more about the MEME suite's use of the IUPAC alphabets. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5622 </a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5623 <script>$("doc_alphabets_url").href = site_url + "/doc/alphabets.html";</script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5624 </p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5625 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5626 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5627 <div class="pop_content" id="pop_motifs_logo"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5628 <p>The logo of the motif.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5629 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5630 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5631 <div class="pop_content" id="pop_motifs_rc_logo"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5632 <p>The logo of the reverse complement motif.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5633 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5634 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5635 <div class="pop_content" id="pop_motifs_evalue"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5636 <p>The E-value is the enrichment p-value times the number of candidate |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5637 motifs tested.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5638 <p>The enrichment p-value is calculated using Fisher's Exact Test for |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5639 enrichment of the motif in the positive sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5640 <p>Note that the counts used in Fisher's Exact Test are made after |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5641 erasing sites that match previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5642 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5643 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5644 <div class="pop_content" id="pop_motifs_uevalue"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5645 <p>The E-value of the motif calculated without erasing the sites of |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5646 previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5647 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5648 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5649 <div class="pop_content" id="pop_more"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5650 <p>Show more information on the motif.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5651 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5652 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5653 <div class="pop_content" id="pop_submit_dl"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5654 <p>Submit your motif to another MEME Suite program or download your motif.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5655 <h5>Supported Programs</h5> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5656 <dl> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5657 <dt>Tomtom</dt> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5658 <dd>Tomtom is a tool for searching for similar known motifs. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5659 </dd> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5660 <dt>MAST</dt> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5661 <dd>MAST is a tool for searching biological sequence databases for |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5662 sequences that contain one or more of a group of known motifs. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5663 </dd> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5664 <dt>FIMO</dt> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5665 <dd>FIMO is a tool for searching biological sequence databases for |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5666 sequences that contain one or more known motifs. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5667 </dd> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5668 <dt>GOMO</dt> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5669 <dd>GOMO is a tool for identifying possible roles (Gene Ontology |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5670 terms) for DNA binding motifs. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5671 </dd> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5672 <dt>SpaMo</dt> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5673 <dd>SpaMo is a tool for inferring possible transcription factor |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5674 complexes by finding motifs with enriched spacings. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5675 </dd> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5676 </dl> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5677 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5678 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5679 <div class="pop_content" id="pop_motif_positives"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5680 <p># positive sequences matching the motif / # positive sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5681 <p>Note these counts are made after erasing sites that match previously |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5682 found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5683 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5684 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5685 <div class="pop_content" id="pop_motif_negatives"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5686 <p># negative sequences matching the motif / # negative sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5687 <p>Note these counts are made after erasing sites that match previously |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5688 found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5689 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5690 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5691 <div class="pop_content" id="pop_motif_pvalue"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5692 <p>The p-value of Fisher's Exact Test for enrichment of the motif in |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5693 the positive sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5694 <p>Note that the counts used in Fisher's Exact Test are made after |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5695 erasing sites that match previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5696 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5697 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5698 <div class="pop_content" id="pop_motif_evalue"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5699 <p>The E-value is the motif p-value times the number of candidate motifs |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5700 tested.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5701 <p>Note that the p-value was calculated with counts made after |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5702 erasing sites that match previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5703 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5704 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5705 <div class="pop_content" id="pop_motif_uevalue"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5706 <p>The E-value of the motif calculated without erasing the sites of |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5707 previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5708 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5709 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5710 <div class="pop_content" id="pop_match_word"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5711 <p>All words matching the motif whose uncorrected p-value is less than |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5712 <span id="help_add_pv_thresh"></span>.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5713 <script>$("help_add_pv_thresh").innerHTML = data.options.add_pv_thresh;</script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5714 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5715 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5716 <div class="pop_content" id="pop_match_pos"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5717 <p># positive sequences with matches to the word / # positive sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5718 <p>Note these counts are made after erasing sites that match previously |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5719 found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5720 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5721 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5722 <div class="pop_content" id="pop_match_neg"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5723 <p># negative sequences with matches to the word / # negative sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5724 <p>Note these counts are made after erasing sites that match previously |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5725 found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5726 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5727 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5728 <div class="pop_content" id="pop_match_pval"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5729 <p>The p-value of Fisher's Exact Test for enrichment of the word in |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5730 the positive sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5731 <p>Note that the counts used in Fisher's Exact Test are made after |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5732 erasing sites that match previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5733 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5734 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5735 <div class="pop_content" id="pop_match_eval"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5736 <p>The word p-value times the number of candidates tested.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5737 <p>Note that the p-value was calculated with counts made after |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5738 erasing sites that match previously found motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5739 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5740 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5741 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5742 <div class="pop_content" id="pop_seq_source"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5743 <p>The sequence file used by DREME to find the motifs.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5744 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5745 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5746 <div class="pop_content" id="pop_seq_alph"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5747 <p>The alphabet of the sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5748 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5749 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5750 <div class="pop_content" id="pop_seq_count"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5751 <p>The count of the sequences.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5752 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5753 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5754 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5755 <div class="pop_content" id="pop_alph_name"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5756 <p>The name of the alphabet symbol.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5757 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5758 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5759 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5760 <div class="pop_content" id="pop_alph_control"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5761 <p>The frequency of the alphabet symbol in the control dataset.</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5762 <div class="pop_close">[<a href="javascript:help_popup()">close</a> ]</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5763 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5764 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5765 <!-- templates --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5766 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5767 <div class="template box expanded_motif" id="tmpl_motif_expanded"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5768 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5769 <span class="tvar_logo"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5770 <span class="tvar_rclogo"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5771 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5772 <h4>Details</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5773 <table class="details"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5774 <thead> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5775 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5776 <th class="match_count">Positives <div class="help" data-topic="pop_motif_positives"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5777 <th class="match_count">Negatives <div class="help" data-topic="pop_motif_negatives"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5778 <th class="match_evalue">P-value <div class="help" data-topic="pop_motif_pvalue"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5779 <th class="match_evalue">E-value <div class="help" data-topic="pop_motif_evalue"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5780 <th class="match_evalue">Unerased E-value <div class="help" data-topic="pop_motif_uevalue"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5781 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5782 </thead> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5783 <tbody> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5784 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5785 <td class="match_count"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5786 <span class="tvar_p"></span> / <span class="tvar_p_total"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5787 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5788 <td class="match_count"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5789 <span class="tvar_n"></span> / <span class="tvar_n_total"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5790 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5791 <td class="tvar_pvalue match_evalue"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5792 <td class="tvar_evalue match_evalue"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5793 <td class="tvar_uevalue match_evalue"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5794 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5795 </tbody> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5796 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5797 <h4>Enriched Matching Words</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5798 <div class="tvar_words"></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5799 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5800 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5801 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5802 <div class="popup_wrapper"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5803 <div class="popup" style="display:none; top: -150px;" id="download"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5804 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5805 <div style="float:right; "> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5806 <div id="outpop_close" class="close" tabindex="0">x</div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5807 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5808 <h2 class="mainh" style="margin:0; padding:0;">Submit or Download</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5809 <div style="clear:both"></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5810 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5811 <div style="height:100px"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5812 <div style="float:right; width: 30px;"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5813 <div id="outpop_prev" class="navarrow" tabindex="0"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5814 <span class="inactive">⇧</span><span class="active">⬆</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5815 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5816 <div id="outpop_num" class="navnum"></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5817 <div id="outpop_next" class="navarrow" tabindex="0"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5818 <span class="inactive">⇩</span><span class="active">⬇</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5819 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5820 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5821 <div id="logo_box" style="height: 100px; margin-right: 40px;"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5822 <canvas id="outpop_logo" height="100" width="250"></canvas> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5823 <canvas id="outpop_logo_rc" height="100" width="250"></canvas> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5824 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5825 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5826 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5827 <!-- tabs start --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5828 <div class="tabArea top"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5829 <span id="outpop_tab_1" class="tab">Submit Motif</span><span |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5830 id="outpop_tab_2" class="tab middle">Download Motif</span><span |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5831 id="outpop_tab_3" class="tab middle">Download Logo</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5832 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5833 <div class="tabMain top"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5834 <!-- Submit to another program --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5835 <div id="outpop_pnl_1"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5836 <h4 class="compact">Submit to program</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5837 <table id="programs" class="programs"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5838 <tr class="dna_only"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5839 <td><input type="radio" name="program" value="tomtom" id="submit_tomtom"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5840 <td><label for="submit_tomtom">Tomtom</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5841 <td><label for="submit_tomtom">Find similar motifs in |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5842 published libraries or a library you supply.</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5843 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5844 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5845 <td><input type="radio" name="program" value="fimo" id="submit_fimo"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5846 <td><label for="submit_fimo">FIMO</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5847 <td><label for="submit_fimo">Find motif occurrences in |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5848 sequence data.</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5849 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5850 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5851 <td><input type="radio" name="program" value="mast" id="submit_mast"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5852 <td><label for="submit_mast">MAST</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5853 <td><label for="submit_mast">Rank sequences by affinity to |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5854 groups of motifs.</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5855 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5856 <tr class="dna_only"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5857 <td><input type="radio" name="program" value="gomo" id="submit_gomo"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5858 <td><label for="submit_gomo">GOMo</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5859 <td><label for="submit_gomo">Identify possible roles (Gene |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5860 Ontology terms) for motifs.</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5861 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5862 <tr class="dna_only"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5863 <td><input type="radio" name="program" value="spamo" id="submit_spamo"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5864 <td><label for="submit_spamo">SpaMo</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5865 <td><label for="submit_spamo">Find other motifs that are |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5866 enriched at specific close spacings which might imply the existance of a complex.</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5867 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5868 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5869 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5870 <!-- download text format --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5871 <div id="outpop_pnl_2"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5872 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5873 <label for="text_format">Format:</label> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5874 <select id="text_format"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5875 <option value="0">Count Matrix</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5876 <option value="1">Probability Matrix</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5877 <option value="2">Minimal MEME</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5878 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5879 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5880 <textarea id="outpop_text" name="content" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5881 style="width:99%; white-space: pre; word-wrap: normal; overflow-x: scroll;" |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5882 rows="8" readonly="readonly" wrap="off"></textarea> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5883 <a id="outpop_text_dl" download="meme.txt" href=""></a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5884 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5885 <!-- download logo format --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5886 <div id="outpop_pnl_3"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5887 <form id="logo_form" method="post" action=""> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5888 <script>$("logo_form").action = site_url + "/utilities/generate_logo";</script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5889 <input type="hidden" name="program" value="DREME"/> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5890 <input type="hidden" id="logo_motifs" name="motifs" value=""/> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5891 <table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5892 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5893 <td><label for="logo_format">Format:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5894 <td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5895 <select id="logo_format" name="png"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5896 <option value="1">PNG (for web)</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5897 <option value="0">EPS (for publication)</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5898 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5899 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5900 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5901 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5902 <td><label for="logo_rc">Orientation:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5903 <td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5904 <select id="logo_rc" name="rc1"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5905 <option value="0">Normal</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5906 <option value="1" id="logo_rc_option">Reverse Complement</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5907 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5908 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5909 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5910 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5911 <td><label for="logo_ssc">Small Sample Correction:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5912 <td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5913 <input type="hidden" id="logo_err" name="errbars" value="0"/> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5914 <select id="logo_ssc" name="ssc"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5915 <option value="0">Off</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5916 <option value="1">On</option> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5917 </select> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5918 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5919 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5920 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5921 <td><label for="logo_width">Width:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5922 <td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5923 <input type="text" id="logo_width" size="4" placeholder="default" name="width"/> cm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5924 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5925 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5926 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5927 <td><label for="logo_height">Height:</label></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5928 <td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5929 <input type="text" id="logo_height" size="4" placeholder="default" name="height"/> cm |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5930 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5931 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5932 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5933 </form> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5934 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5935 <!-- Buttons --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5936 <div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5937 <div style="float:left;"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5938 <input type="button" id="outpop_do" value="Submit" /> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5939 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5940 <div style="float:right;"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5941 <input id="outpop_cancel" type="button" value="Cancel" /> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5942 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5943 <div style="clear:both;"></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5944 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5945 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5946 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5947 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5948 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5949 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5950 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5951 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5952 <!-- Page starts here --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5953 <div id="top" class="pad1"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5954 <div class="prog_logo big"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5955 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAPYQAAD2EBqD+naQAAAAd0SU1FB9wLGwYBMoyhiwgAACAASURBVHja7Z13fFRV9sC/503JpIeaKFVREBQVEEFFQVcUuyDouuraFoVV17IrayPjDP4U3XXXhrpiXxuKKF1dV8WCiEgXRUAQlJIYAilMf+f3x3szmVSSkICyOR/eh8wr9717z7mn3XPOhRZogRbYLQiQJiJGy1D8D0LHjh1/XrZsmQK9gU3Ap0mE0QL7KTx411136Z///GdV1ZhpmvrYY4+pqsZUVceNG6dAz5Zh2j/hnpKSEtM0TVVVrfq/qmosFtMxY8Yo8CPQHejucDjyfm0dbZFp1WGaxmJ3ppSWSiQUIhQKIWJxehGhpKSE1LQ0uvfowQHZ2exYt65D8dq1qzUaXR2LxTYCP7UM4a8MVFWA9mY0+nLhmjV63LHH6vMvvKATJkzQfn366CtPPKEDjjtOV61apeeedZZqMKgaCKju2KFmYaFqJKJaWqqqqoACR/9a+u5sQT+IiD77zDPbKCnR00aOZPHSpcydO5fLf/972rdvTzgcZsEnnzDmqquYPmsW/PxzxbMOB4NPOokRZ5+tB3XrJsAUYKmqOkQkVuVVKUBGDRbGz/vSvPlfBHcVDpB7XP/+Gz9/5x1mzJ/P1i1buPbaa1m/fj1du3alW5curPvqqxobCoVCpKSkIO3a1Wc89bCuBy51OZwu1RgiBqGYGf1uw09/Bd5t4QDNT+wKfPXoxIl9jzm6gkt/OmsWn3/4oRIMyrfLlzPuzjvp27cvHTt2ZNGXX+K/7baaW8zJITM1lflz5wL8ZtWqVWm9evXaVcv7Q2cN6hM68tAuR2MIhirFpUEef+MdBFK1RQQ0v6g/MC9PLxk5Uq+/7joIBECSJmwwKKqKR4RTTjyR0885h2effZaNa9Ywa9YstKQkoQzGwSwuJhwIwK5ddO3a9b+9evWqjQPoSf16qUOQles2gYLL5WDaBwu5dtSw8L/eeKdFB2huaJWTo0NOOMF8wOs1qiG/QhfghtGj+dMNN4DblhJlZVBaWg35AIYI7NgBbjcbNmwwjz766I+WLl16OfCDfUs3YB3AAdke6d7tYNR2Jv6wuZA2rbIwxbFPxfD/jBn4t7vv5uUnnzRsTNelEEIoBKWl1qH1YM7hMAXffWcsWbBgMLAB+AgoAtYC5SJCp86dUTPG89M/ACASi1mDH4u2+AH2Bvzhpps+p3Xrmi+mp2Oa5h613y4nh1WLFuHxeHTq1KmDVbWVqjJjxozU4cOH88rsj1FXKteMOh3D4eQ/ny/hjnwfn32zyWUYxtAWK6D54YW1X355WbcePSr32elk1EUX8cYbb1gzvvG+BEzA2b49msQ1RARVZe7cuTzzjwl079qB6R8s4PhThjF58mQADjroIDZs2CAtBLAXFMEaTwaDe4R8ALKzEbcbVUVVE4hP/t/lctGnTx9+c8op3HvffQm9YubMmZx77rlic2Rzbw7I/5oreNzJgwapqqI7dqA7d1pHSUnyVG5Uw0MGD6agoCCB7IQ+kcQFIpEIkydPZszYsQmuoaqEw2H95JNPdOHChTHgervJT4DTWzhA08OjwGWT7r8/u3xXhckei8W47c47obwcMjMtsy9OEHUojdhI/M2oUXwwb16dIqKqJVFaWkJmZlal60OGDJk7b968M1SVsWPH8uSTTxYC7WmBvQIbV6xcGQK0aM0a3bRsmW5fu1b1559NLSzUakdBgXXYawC7A0CXLVtW7fzMmTOrnTNNU03T1OXLl5u1ia4WaA4lQbXVmDFjcoFcIHfJ0qUXqKqaBQXVCMC0kZ+MtNogEAjoli1bar0ef/bee++tiXDMFszsQ+jbt+/r1111leqOHZWJIBBQ7913azgc1qaAeABCVUKqQgBvAO8BL7RgZu9xhd6nnnpqNLpzp8559VXVkhL9ZOZM/X79+j1Bdm1sP2KaZix+rqioSBctWqSqejPw2KhRo+IPxjp06KC0rOg2p82AkE8O4zkbiAJ6ySWXVJLRjUW2qmqrVq30+eefr3RrFWYQf4+pqjpq1Khq7zYMY4/0g5agxppgPCnARcC1GPRFSUF5gAn0VNVz69vMkiVLWLNmDRdeeGGt93Tu3JmNGzfu1slkGAZbt24lNze30jWHw4Fpmo3GYwv7SIY7GYKD8UA/INteQFaKEL7iqBNPPPHYhjTXp08f+vTpU+O1rVu38sc//pE5c+ZgmiaGUbtLJu5HqMNdfYXT6VwdjUY/b+EAdXm9DMNlmmYrAA/I6SKe6ao/JM38v2Pw52oPrgV9Seu06RugTzT62ZogNzeXbdu2ISIYhpFmmmagxRNYC7Gbptlnw5Il29Z/9dW2H1ev3jpddQPwQ79+/f5k32NNsSpStdeSXonZ99JLL+0RAkWEG2+8samUU7Zt2xb3KKppmptbREAd43Vwly5fdDniCLS42DoRDILb3fnRiRPzLzzrrIdVlX9MeoKCw36GSMUIpaWlJVh0UVHRHiPt4YcfbhqKruxyFiDUIsfrhpWAfjprlpplZVZUb1UHTyBgRfnGD1Xt0KlTvR0++xIcDodecMEFCvxDVXv/79nrM2lnzuAanUWdnV8InzocDu104IGqO3aY+vPPWqOrt7BQdds2jcRijTLzmsg5VO93RCyCNa+88kotKCgosTnC6f8rIkD/PGcsQ044AYAZL9XOgkdfdlnxibEYuzZvjkpOjrN1q1Yc1Llz4p4Lzz+fcePH21qBidMwGDhwIA8++CAn2O1XZcWjR4/mmmuuoX///k2ruIjw9ttvc/755+9enjudAGIYBu3atctUVXr16vXOqlWrOovIpv169pszeX/yP/9Z+0xOPqLRymy+yvHp7Nl61tChetbQoTpt6tRaF2x+qSLh6quvTvw9adIkE3hrw4YNjv3WDNSZDEZ5/6Hl9zhvGjsWzKZbOykH0tu2Tdjie9H9XCmYpCHPjR49mqeffjqZi5iq+jQwVkTM/c4MVCUfcM564y6u+8ufmxRRV1xxxb6xWUUSR0Ofa2clqdgSzOTVV181otHoNTNnzjxjv9MBzBl0EeUUNeD9e2Dkfc/z53xPnUGeN4wezcFHHlmvwX1j1iwAJk6cuNf7tmLFit16CavCww8/jMPhSHZ+sWDBAi688EL97W9/O0tVPSIS2m9EgDmda8XgSRRFKvqjigooQh85h+Xx819BaxO2nQ/ODGAjrA5A9WyeTA4kg1y2UCnO75cOJ510Eh9//HGN10aOHKmLFi2a98MPP5y834gAEYaikIx8+7wAhpr8oabnpgMvA5/Av4C+1Y5bWMRoIJUXBg0apL8G5KsqH3/8cY0iUFWZOnWqnHfeeUNUtcPeJoBUwFPHkdoYbqQ+BBiitYVMWYs57iqnYskv0trEoGlzjXGMX7du3R3RaNMlcDz55JN1c7VGKrFVg1DjiE++duutt6phGAtV1dhbBHBW6+zM0iM6tSkccFTPwv6HH1o44KiehUd0ap34PahPr0Kga4MJ4CjOUWgjUgvxKIiDc8yZpMVPReEkrZ/uk2hz69atr7344ot2i3sOY8aMqRXJt99+e40yf9q0aU2iRHbs2FEGDhx4wPr1689sbiXwcDEck3My044ePWKo4dRwRjQUILPtgZRt34rDeTCxWJSs1rk8PmUOKSkeCYWCDSR5OiXQpLYggLCCS8TCv0CmmBWELtDNThPeKZBdzzdtuPrqqyU1NVXPPPNMsrKyqs26hkJtil12dnaN7HvEiBEN1kPatGnD9OnTOe+88yqdnzRpkoiIpzk5wMnZGWkrhxxz+HG3XHRqqsPplPKyMlxZ7dkVCODMaEtZeRlpOe3419S5dOt8ANFYrDHy/5i4wocgKH9Xg0MFvkiewVolqNKexu+p5TFIq+/7fve733Wcm5PzStzbJyK43e4mHbjbbrutmgyvmmdQX+jatSu1ia4tW7asbS4O0Mntcn5wxx9GaUlJiQQiiivFQKNhHAaEy8pwuj1kt8njqTfepXvXA+nToyvzvlzZCK2HYxGsf8oKPNxunE5U3+Kv6uBdBI8qHlEOB76sLiBQA04GfPV840/dIPDEV1/dd5lhXP0TLAmrzveIyKlnnXV3z549uSknp/Qf27dnDh06lGHDhu2RLG+M4ygOmzZt4swzz+SCCy6o8f7PPvtsS3MRwPI22Zn61LT3JRwoQw0noIg4UP0Wp8uNwzAQEbp3PZDB/Xqxs2xXwzs8B6dGcNvs3BST2+V0ogAynI/N6SwTYYCCC8FTnQEkwNEwqYNDwbgZCoAPROSBL6CLMXv2rctmz85eC5suX7Yss3fv5lmMi0QiqGo1ziMiZGdns2LFCjp37kynTp3w+/01EoqtDJY0FwEEI6FAzgF5OQw6vi/ZuZ2qsDTFYRj4n5pKSXmAwcc0cqBCHC0ODrFlf1TdLK6CqWUKA5IxvhwkDCfsoSY3AHhCLQKIZ+x4gNgy0KOgpP9RR5kh1QNVVZrafEx28lRF7M6dO+vFXbZt2zYzLiKbRQfof2QvBg/sh5HZlrJdAcp2BSgPBO0jRFnAUvaGDuhNWKVR+XhacQiwQkJsq9RRk9fFVgvjKCgHUTjY/j0TCNOApItnraacWAUgNgI9kr4n8Hu4HejxCVwhIufbkT9ah07RoD5PmTIFwzBqVCDrS2hjxozh0ksvzW1WP4DGPTGqlO/4GTEMMGMJRBticGiXA4hEYxAO1J17V7sCmJpkq70vw6shsrwWV6fadPGFQkSg+6dW9a7dQtuK7glgSAXxuA3IFbgnaQhmPvroo2kvvviiTJkyhfnz51ebsa+++mqD+nzRRRdVUxAbsu6hqvztb3/ToqKi9LfeessNuJqFAFJcTsx4UqXhsIY8o03i7x+3FfH1uk10ymvbKOTbLP4uxEaFWb3CVtw5ZP9f0yw37OttU6mkI9QK7SALONh+7geFTp9bhHBI8jsdkGkTQeDyyy+XRy6++MCJQ4aQ4jJwuxy4nQYOw2DqM4/w6KOPNsi/EJ/p4XCYYDCIiDBz5sz6IF9FhKysLFHVZ4YPH74DiDQLAfxnwTI8bhcA6QceCmrCrh1JyFGcDgebC7ZbMe+N0XohB0BNtkuUFdUNapYqrBTlWnawIPnRKm8z+sHO+rzTsPP3HfCdAcUKrRwWAcTZglj0WNmpNV+15OgLYMLYU/nsoYP4+w0D6NPzIFYu/YqbLDEhDZ3NW7duZf369agq55xzTr0IZ+TIkfTs2fMqEflns4qAXcEQD7000+pQeBehcMTqY0paJXZkGILDYbDw63UYTkcjGQGFMrJ6oUXjZEKEOEHOZbJcTsy+1wW018revtKvbGKqr3SzxYgA6tiNFxFg1nhy+x4coaA0g+8Lc1mxqSsOw8CMmYrAIYcc8pWIMGHCBD744IN4mjGzZ8+u9UM6d+5Mz5496yP7TWDh+PHj5c0337z5m2++eS75YnNYAUuBYcUlZRTtLKNtNjhTMyAWhkAJVCm57zAMPl60ktRUD4FG+Nu1jjUEYxQlVe51A22A4hDsTIEihdxwPXUAJ7QywWXP9gKgvQluhSyjMmEkOqmzOBqTawpLiKalf+WcumQkaZ7VRCMRwsEyycnKCq9bt+4e4G2v1wswbs2aNfcfcsghnH322XsU26CqFBQUGHl5eZMsCca/apSDTQxnAEsNw+Bfb7yDw+nAiIYs5ljDfguC4HQ5oQEeOX2LTsDRtgqwraHjIrDhBNgKfA+kOmFIPblNOhADchXuAGKm1auOSRbJarGqh6PT6YPJuTj4dvgDrPv7zJNp3+pHwsEQS77bqNlpLkrLylxVfBEP9OvXL7t169bFzzzzTKMJIO4YysvLU9216wWgNRDYGwQAdrFkj8dj6WmGUaupVx4MIohCDXK8ts45SMewuJdq40usaoUdbzRABDgU3hZrrwBxWs/GrdJLgamAQ+dyACnI1PlDNslZW5Z/tvxC98at82MSLg+nOwkhEvnHy+8QicYEeDP5JSUlJSXFxcVnXH311Yfcd999DepTfJFpxIgRiAgbFi+Oh8gJtWnCzQBvJ3ynBdvrObkaKPs18aDRAIRrfcVHLc9nWRYoOTbCU0LWgpJD4Zn+VoiBiIGDCA+tWt/5xElPnb/11uzhOfD6tNUb1sy654XZcx+c8v5MPPpM4Q0l5yb67k36tnyuwcsaYN2bb7652lbidzvjwUpIFZFvZ8yY8U9AFi1bJpgmpw4e7Hn8iSfa7y0C2BFXmMLRmGUFZOVZXKBKR9I8KbYzr/khDVphKYJxKGggAXSsgWhjapmBAfueoKTQ86ftbd4cNvZv342KPtj3b/4FC4C/AOfbxygC/BGYjJerKymY+dyNn6fwsR1g8eLFh4kFNdr+yev9IsLAgQMBnjFN8xawah8RCjH12Wfd2dnZf9pbBHCl9U1JXj61TfHUrEZX4tpTiMJRgEcrMPiuzbu7NcDqSDYHDCzF0p0w5WBtaSDd3fGKDwdc1/rO464bt+kZbmRrjY35yQMW4+VBNNH0kYnr3sS5/r17917bt29fzjzzzER0kmmaiAiHdu/OgL59WfzBB0QikUqv+L/HHoNWrcjOztY/33jjnap6dnNbAYmPq8S2DAcYTUdvWuGTq7PAnzmdozEpM4azNsmMe99G5nr791H1fGerJCL4RKCvEzpbcSd8Y99jOohFx7cfNf/JS9Yu5C4b+V5yUcZWoiA/d+NjCV4mIVxGPjvwVzJJ7yGfUvxMXLly5aH2uRduvfXW30+bNo1Vq1bN9Hg8Zxd8842069TJKoAdDlf65uVLl743b/bsUwcff7zx1xtvVBE5CpjV7ARAJbepQGlBHaK+gSqA4BZLoIeBGnOAzHcRCeJVAy9wElbd3jgU1TyhdwuH2Q+8HYMrndaagClgKBTbDao4gtnzTlr93YZ/sslm688AF+InM2l2tyKfAEIaPo7HyybCDALgrwzEzTx8pPR6rJesYlXyN1z+97///fKMjAyXx+OJANF2HTo4CNSaFX76I5Mn6+Djj+emcePkhWnTzli6ePH/NbcIALghMcBij7DhqHGkXbYTyOPxXFw/9sJVGveKhqkWSWK+TT8JsdJGfk1UmdKYDomle84Pw4VRCKj1uyPQmQo38I8pMe75eGqSVePnanxJyAfwUYyfVOAa+3enj679aMW9H99bFLwn+Ln6NWKapq66flWNxFlWVhZpqNiipIQ+3bufoKr/anYCcDqdyypZ+6oEgoGqwbuEI1Fuu/J8cjLTFOhUrw4ZpCS5X6uy/KEYzEfoJdVV/Y72gMQX0x0NHIc0gc3HQ2SQlXi5zrAcLO74esMxML8//LsBQ/U1+TyOFx3yxJCH7njjjpM9Lo+ISIZhGPVhjY7vvv66Tg722cKF4HKBKrfecIOKyEnNTgAulyvJTWmha9eW7xEUl9NRKcwpHImi2mCTrDboIVW2hEl65veSNCkUFoiFyH71fGc/S5dMNBKxiSgSg28bOVSfIUxC+fCREY+s59GKHIZ6Qu+1dRealq0FBectWLBAAXr26SM9DjnksCVLlvTdGzoAYhgEy3bgycgmvU0eGijhgHatq/mw60fsu9ccpGK5tyZiidp/L7bPXwakaP11ALcJHye1G8WS/+4YBBs1QD4U+Bo45U/+PzXK9e5yuSq6XD3aWIEZp40cKSUbNyrl5fLa5Mn06dMnrVk5gL0Vm+XtKy4EEVLSMkGEDZsLKsKi7aybmy85m2CwYWOoDSeUDvbfZQthmgF3S8NCvdVIcqfO5oznT2POfxww5Xj4jn0Dg6KRSJyd0uGgg2q8qbSs7IzNP/0ksViMjPR0Jk+e3LwcQERmqypqmrTueDCoJpb+K0W0CIgKu4JNU91E6yYE077+qgGt1FoXkPrQ0nJwhaBrhUqxsN/duLIBTz+YyL6DBWaSuR0Oh2vMZDZEPuzQu3eJqmYempe3CXikua2ADBGxAkOo0AUioSrmSkome6sWssI2+0vi9nz8w7IWWG7eWmGXpVekAz/Cyr5geCD2M5hL+IWAmiaFRUU1LiCZqiERWSYiAaDL3jADUVW6dcy1RlmsSOBoMgGoWg6iRkYFST3PKbDQ0tYHUF0/UIEsl4XcOtcRBCKTuMYNWg6aB/IK9Iv9UghARKo5gqrg46SsrKz2e8MVXAnHoJDexqbS5HAMgWBZk7J7Tfo/mfdErb46arLt6/MuAzmojPSVU7i4OwT7gsyDfr+oqlyqWrHbWS1QUlJSvldcwTWlMZmmSVp2a3YW7UiSylEUSE9NaeIPoFwAFdJFCRh7mAp/LLo5j9e+DZAxEPgDHFP6S0G8y+UCtxsxDFrl5OAwjB9i9UwwbRYCSE1NTVFV0jzuauxZq85XO7Pz+Rkf4XanEA7Xf1JJ7d66dUQZpk7mohyCtQCkdbUT3s1YCItag7YB9wg4KvhLmvnDkmoR2/L/jfo+21wi4OGYaeqNvzuLmGnaYeL2QDprZlE/7yhtsC9Aa+7RQkyOM0awNp4cqyYxo3osQPJvtxN+U/fbytdD/zN/aciPm9zxgwZyuuYiAAUkGAoTLN2BiAFlRVbwlMOdUFhcTme1Ldb2WBE6h4XG+RRW0gOcGAYcYfdXbeSLwncmPG/fuxsZNHj3PNXLoc2K6b9wYigSupwbGNug527nZrxMx8uBe4sAKsynnUVWSFgSbYgITofBh4u+xu1qvBTanQEvlf9ok6R6isKiGBzeiJjCuuD4ZhvIfN7DyTtRjT6vj+gk7iJGvrUEXQdBtsPL53qvrsbHefjYvNcJoE3nQzFj8awgC11tsjO57OzB/PDTNis82jSJRmON4TMOcXNCXaZbTQShMMMJJw5M8utT+e+KJmJEGvBF/ya/0rJz04Gf05hIevq49C4dHuwgOkEnTr94+pXG3UYxXsprQH4PrEDQITEz1mGvKoGVNP9YLCGI4/hwuxw899qHiQCRcCRK6a5Ag6phYWn4DkyOISnAIXFtFjlqkpcsEW1q+MgDI3tXlIOOV1o+A3im0uRQbuGeKtE8Xt6ASkEoG/BhpeH6MPEyGS95+GqJAtpTeIiNm9kssk3ye3ftfT3wb5SX8PIZJrOZwL3cxFCUTvh5FqB/Xv8ruZNcHDyBn6K9SgAJuW6HhyngcDj3SN5rZQO+ZtYRpZc4yNDqzy5OQj6KpS9QOd4PDCbhY2MVNjwNHyOqEMQBeNmAcjF+PsdysZ6FFR3cfJDKSyu2rTDwsxYvxUC7Nultvp7749z/e+ubt7hv6H3xYNO3T+t2WtclY5fcszeVwKpmScULDQc7Nm+o17NL4IAaiUoxRHfLHQ6KZ2mQTlShVy3WY827bFRFvsWGR9Rw3xZ8dMXP53h5Dx8BlEnNrvr7+R5hjv0NrVCuL7qtqMexHY+VNFcaqvoR+UTxcf7EoRPz97YVUAnh5TsqZ25Z6wG1Y3ARdPsSvozC+Fq8iy8ma/k1EolB3wSq04hRS9yfNOVChDKKfD7GT64d5CE1yOamLBjQm3y+sAniIfJR8vnD+Nnjh8pd0gc/zqlfTxXqSH5tdgIQh5NYknPHNGO07nCQlRHkMFizcUul+7+EEQrLgWMEMudXDuOOY62Iiiz002tBRq5URnQ8O2JHLZ/q+XRPRaKfnfg5iXyOAYIog2v4rqvx8h7eSvpG48BHCD8D8NolboQr8PM0afyH/yP7uSXP6cjDR6qIPLbPCKDs581ktM2rpIkbTjfZGWm4nE4Wrfo+ce30aPQ0gdelIk1suLPCfKvNDGxXTfGciaHKwBruj5kwt5bmfmoSVuAlHcGNn1uQJI+cl1S8BPDzND5Ow5fIB2gKOAkvgo8X8LIVH4KXdVf2uVLI54p94QhKhP6nt26PiGHrAla9gFgsyvUXDSMQDNOv18EJVt5F9US1F2xs5LqB3+7GE5ii06tk95aSJkJ2LSKiqkNnrcIcAy48sWZTsKGzshyYZn/gNXjJJp8XUVrjs4paNDn4OBl4CC9ulP72uW54KUCYXdejzWYFHNyhPSJimYGGEzSGQ6Ns27KJtq1y2BUKgcbo0eVAAqEwrbMyMIp3uqtYbS7g8M/BcVwVbV8FEUUx6KIx+gIfJC5mcCbQVuIpRy5q3WHTgMIoXNKPKra0lwwUL5L0XqsYXVHco4iSDfyIn8cT8t0K8boLL0OB2cBDwN0Im5uV1fqI70S1KencbncdbzYC2Fq0w1oRVAVPBlq+nSlzP+LIzq1p1+aYRKZQLFEfUCv7kSvs80tdcC8VSRyIEFOTXRikq5WVcYr5Jh8aF6Dm2xgoN2Hlo/5HlFOD82kLdsx9FehnvW5HFXOvLVao9yuAQRTFQRQoRVmAUGqXoC0CnHgZh9IJpTtesvDxNF6eQ/Hhr+Id9HIYVuyBAEvwsU/jCZptLSAQClcIanEQDEdZvbmYEjMlYRq63W6m/OdzAqEwRTvLksmgIMlec8bssiwJ2Mk6YGVivV8ZKS477l7JQ+hjhyGEENAwTir0it33WSgGvkH4FlhVMr4kHViG8D1CayAHP53x0wc/vfHRFZgBPAisw0suEKiG/HwUK5l0FfD1HiE/n3FNgahm4QDJAaEgEA3iSXFxxx9GgghqmoghqEKq221XXDLi4rnIztm7LE4ADhgO/DfR4qWY5vREHJGqcChwhU5nKvCICh5bh1ibrAQohBywsR7sNEZS8GeWL+sTVT1fRKYnIWAW8Cx+W977GW4j/jzgRdTOcfAyFzgN2IKvCU1AaRrcNRcHGNOtY57l7bM9gPEUIVEzyTsIwXAET4qb1tnpcc3RNGGjWCHcaiPy5K9qswbssvCi/E2Fb9XgAtFEINKcKq7gsEKjQpAqId9C+NkIHrxMJZ8rbcLZBrwOvIcQxcst+DgDHw58VTyNzQVeO9MI4E+cz1+rW0PNzgFEhB8LiiqigtQEhxuJhSElA8JWZdBIOMzFw04gEAqT17YV5s/FCEwOw/1uuFEgw9L36Bi1qm58DqBvISqsUOhvl4lVxMrSTSDf0hVMtf6PU44a0wAADOxJREFUn3I2qcD18YqtJ1js3Y/gs7dq86JNMuO9OFBS8e+GcL38AZiAz/ae3sIgfVD/DVwo98veNwMPaJNTMdMjAUhrXaurWFUZecoATNMkBl96rLy7Fyo8v2Q54KoEgQ1HxeRf8ZTqeLl4iXMEQTD5UiN8KyDFy+gOuAVGD6SGlbOmYcmLbUSk2cUeXE3UsgehG16OrOJFrIrVc/FxAF4EL7dKpqwTkUzJl6v3jR+g0lqAQLicJKldjWNErcgh0wFb+kFU4Lvk5VyF3E+pZEerUPtSrQg7RXAA6wrnkgrc1h9ea0YzrJ9tBu6yZ36sidotx8cylP/aJibkEyJ5BTSfyfiIb2t/JcpoRXfh5SGEW+pyPze7J9CMRSzEh8vt11X+lnhmcHFJGbtgmwkLbYTPxpbX9hMnpVvr2xb2f2IpymqtzUOovI6DHRRzZHgbT/SHvze7/PUlqZy+Jk528NMOr+3UEYL4WJbk2ppuE8Ig4EH8dMfaMfRW/Gys61uanQBKCjYj8WqhalZUDgXEcLD42/VEojEem/IuLpcz8aUGbLft7PipzCgk0seN64iqEJUaOI/d/Eo5n1K5nED/2v3/vzaovnI5nmKdoGWMYxTwHj5a4eVRfLyOb/fBLM1OAK7UNKLhoB2IZev0CfvOwdpNW4nFYjgEypTCATbCTYvdB5NYhgGc+kVyAoda8Xw1sIAdmKxkfwMf99j6Raatb/TAYCxw76Aeg/6CnzTyeRz4x742AxOQ2ToPrSNGPVEvwDA40TTzAeZDZwP+A/TQCnkPMESS6wka/KhKTLWyG1FMJhvDKWV/BCUdtXZCE6QNPl57/MvHp8/fNH+aPaAd8FV4TfeZK7hCyzdxuOrOVkn1uGmdlU7fguDOhTBArLp58Uze5AQfF3AmtoUg5bxDGisQjrb3CUSEsLIXAjL2FfjZBTyLl+s0omNV9XC5XT5iIifjJYqvYTjdK9vGWYtCUWKRcC1EAqaVMpYr8K5ABxvzPyu8lMQFDIE+iXZ/S7kq/1TTrk5v7Rs03TiXH9jfQXno5d++/FdLg+YW8nkJu0DnL44A4gpf8eYNSKisxpKx9se8FN/JS+FHE07TuPPHeqrs2zwrGijJ3HsT4d9qEkL5gihj+F8AofCSIy+ZLSJiHGCkImTga7jes3cIQBwI0LZL90T5uNQUN0n1+uJOI6ddSvI7gcEDYEnMEgfrDNh16ZVMuOyaymvqci7l4uCPAscS5UQZYVXr+kWCFw/5XNpErT2Bl3mQKA/bqHLre4cAnCnWHLZdww7D4PE33sPpMDBVCYYjyRtHLVc49RirkDMu+DkTplx/Mb5VnVmFn8+q0ddZlMl5LDdGNCiGf19o8UHgVbw82ARtTQBOAejVvtdCfAxvHAHk4yOfmXjrXTO/8X7BlIxEQfUtQ4sItg9y5KGdMU0zTsWLIzDk2KSghmPAPOxe5n9+KFvxVY///xUqcTEaUBl9N0QQA/j6uq+vNk1zTuMkSYU78SWEQpQZ+PlwT74rNTVVO7RvzUWnHR93BliewMxcKN2G4XDwwLzpDOvQhz7du7Jm4xZ6z/n46xNUj64WljWeS1Bi3NOMbtx9AfHFoyYA0zQLDcNot2ciwM+l+LgZYSNeFC+X4G1qEWFxggm5r+PY6CAtxY0gvDx7Hk+53RdUQ76X36HsqIz8+Zn7iTkn5DeByPJiNhb5NesAPtbZixkLgbHkN5VHTatSLa/O+RhPiguny8VmkUiVGTKSGC7uSQ5qXDQK3K79hgsIfcnn/AZwjYer/P4C355NUqfdkA+pISJWWY6fI8hnIjALP5820htklYhRZYO7gKtWnMorfMp5pwwkGI4kfAVJbP8iYDJBKuLJ+eIWYCZEOmCtE/z6wccK8rmMpP0V6pjpU/BxUdLvl/FZNY/2nAD8NdfUxcsg8ilE6IFyCV5W4KvfDluVIFwOqZmwcyuSYmA4LKI9uEP76hWtLLb/AlBi+Ym/NICnQB8FvRKMf+5nFv3h9UD+DnxJSnp+EwWb7NYM9PEpftqhBBC6AB3twMbdTPgqhWAMB5QUgOEg3eXh6TffQ0Qo2F6FlsZzMcrLdrybsOVQB+gLIK+CXAuOt2BA4X6Ffj9nkV9rsgp4ObkS8r1kIPRtqtcb9fzIAPA8ynm28vJinaJNhEAwnCAGQwwrLkuVVzM/AXFgqtIxtyLML3RuaBjCYwl1IepciCttEX89+Wt6z/kdyELo+2UT59b9UnSBTnWoTq/ZiBe8DEK5CB9L9i4BWNxgJX7uxctHwH/JR/FyYhJbOiX+ZyQa5dQB1qbQhsNBSeFPliQIlFVgT8HjdlG0s8yOCMZEWWR/1TpWn5rJc08fyf0fLGHFsC/gmOftJw8mn6f2G+RbBH2pHcxRVel7Fz/xfX4PQTkFfxPkFO6RJ9DHEPy8gHAqMA8vx9lX1sRr0LicTuZ9ZW1yoKaJM8WDqsmM7C+4qei8Srs0/LClEIfDIGVGynsIp+HmFe5eOJVpvkugJAbGRXDsU/ZglaL0wZ8U+frrVwQVH0uRiiLUSVCSxAmm4cff1K937sGH/9f2JBaTz834eZ58lgNHqipOO9RLVUnNbGU5AtOzeOfdJXhS3PHVPwxDCF4TRLbLQGLi5a4VCrumoOEfIethkDH2bFhUbdOFX+aMdgC/QdmF8AJWfkFOPcLCT8FLb3yVts9bYre5EpLkfjwFLZ9DgG74G7913p7HA/hpRT7r8PIwPrLx8qg8IDbRWmG7ajggFkVRHA4rUbRjbmvmZixma7diPE95UId+ESyb1xVCr8Gx38PCiRC8CU6M4OXf+DjmVzKjY8B7NpK6JbHzOVh7FK/Cz4QanvwUrVjqTngKrXE9osq9t5DPQIQVifI0+4wALCLoRj4R8jkaMEzsDaPsAD1JyYRdxYm9/qKeGMHLggzddjzlgRCPx94lFnr8jyAvQb/vYeEEcE7Ce2w7YAE+OjdgBrpQ2iEU1icmrllZe+UxOrMScoUsfElRSz6ieHkT7L4KP9Rg++cA3yRi/5tEBHiTskkra58K5FCRVJFVp+3px0U+EZQRsQGxQ9Z/UnCa3RErGFSE7Fg6ZZlBUtJcXLJtCAK0ykq3zcZYAI5dAgvvwBF7lbuOPQblM6TyTty78ZTFgHeAMfALthYsS6ojXlYB1wMz8KGChBQFL2vw0ZX8JP+Ml09QzsHfdMiPc4D7azFNFDgQiODjbnuAb0bwxNGKcritqMzBzyybCFbHesZSnfMrPLYhwrgEWpmZzB+0mq7rc3FJ5eVrd9qNzwWdb9/K1cMGk7F9O7ABfz02dsznLWA7wiZ8jVsT30dE8CPQCS9DUd4ARuoOvfH292/X+96574JEZpFVfHKUbYI3eXSz7IadrrQR3BqlE0IaVkxeCJ+dj5/PowijgFyUE4AhrlmuAZGzI+fesXkkgrI6awcHl+XwwAFvcvyMXmwpLOZ3ZwyC9Na4gsXc88xbRA+68TPOes4gs+hKrMIQB9jf9yjCw/iS4vy8ZAPHAq/gox2/ZogrdF6+xcdhtnjItJXHTsBIfM2X0+DcjRw7ogbNcztwpR2eHEM5AR834KUz8APCBZEhkb84J7pY/4dtFLp2MiDSn+ScTDNeNNL2GEZvimA8mPeymVW0EFiDErMVIAOftRN3Jflp+c4v+NUjP1lX8HEYXhaggM8eLC/rsfYoajYCkEZSbW+U9ggG8B5KCTADP5fhZYkUSh5l5LXrlMXBgVx+Ez0JgqXMT/+G0vcCDO53OKkeD2ZaNs+lvc62B0rR0bHbtJ1+AzjxMy1pZjyFtd9uJjAK+BTffpPoUZNIU1tHUGAw/hr9A/vYD1DZVhW8HIdyDfkoyunaVt+lLRRHykihE0TDoCZhiWCq0io7g03fLufLo8ro9+khvNd9GeHW0ZsQXsbHX2wl9HK7ysZMhEvw8R/2d7C8gr9JKIp7xQvd9J24C2UGWLlrKeoiKjFu2zycmGny3oIVnH1aX/xZr3PnllGoKve2mUrqI6ndAuMCG7Ayf0pQyvGTQQs0KzRHUOgw/CyPk9ag8p5cuv0UAhKh+KfvibYx+XDV19y5ZRTRcIiH8mbieMZJcHRwNMpbKCUoHVqQ/2slAB+D8CKe+z0XuF9wU2IGOCCYzbK0DSw8ooRdrYJsWlWEAu+3W4G37CLMo00Q0hA+x4/gb+aKWi3QrBwAfKiIFOKEHms74ED4MHsF3QMHkvdjNtt3lmkwFObbnVujTy59d6drvnOjpmm0Vp9EC/zKCMAGx2ZHzAyHYmXbC2JXLTgilrOmNHZc58xYaSDMP16cPsN4zXHk+sHbMsO7wl1wM67Jc+pboJmsgPrBAlXNKy8uIJN0XA7LMxiOmfGNnQpLS8tIeO/2cb28FmiBFmiBFmiBFmiBFmiBFmiBFmiB/wH4f+jryq6sRdUDAAAAAElFTkSuQmCC" alt="DREME Logo"/> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5956 <h1>DREME</h1> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5957 <h2>Discriminative Regular Expression Motif Elicitation</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5958 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5959 <p class="spaced"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5960 For further information on how to interpret these results or to get a |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5961 copy of the MEME software please access |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5962 <a href="http://meme.nbcr.net/">http://meme.nbcr.net</a>. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5963 </p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5964 <p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5965 If you use DREME in your research please cite the following paper:<br /> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5966 <span class="citation"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5967 Timothy L. Bailey, "DREME: Motif discovery in transcription factor ChIP-seq data", <i>Bioinformatics</i>, <b>27</b>(12):1653-1659, 2011. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5968 <a href="http://bioinformatics.oxfordjournals.org/content/27/12/1653">[full text]</a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5969 </span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5970 </p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5971 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5972 <!-- navigation --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5973 <div class="pad2"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5974 <a class="jump" href="#motifs_sec">Discovered Motifs</a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5975 | |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5976 <a class="jump" href="#inputs_sec">Inputs & Settings</a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5977 | |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5978 <a class="jump" href="#info_sec">Program information</a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5979 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5980 <!-- alert the user when their browser is not up to the task --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5981 <noscript><h1 style="color:red">Javascript is required to view these results!</h1></noscript> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5982 <h1 id="html5_warning" style="color:red; display:none;">Your browser does not support canvas!</h1> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5983 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5984 if (!window.HTMLCanvasElement) $("html5_warning").style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5985 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5986 <!-- description --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5987 <div id="description_section" style="display:none"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5988 <div id="description" class="header"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5989 <h2>Description</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5990 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5991 <div id="description_text" class="box"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5992 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5993 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5994 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5995 if (data.description) { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5996 $("description_text").innerHTML = ""; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5997 $("description_text").appendChild(make_description(data.description)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5998 $("description_section").style.display = "block"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
5999 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6000 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6001 <!-- motifs --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6002 <div id="motifs_sec" class="header"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6003 <h2>Discovered Motifs</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6004 <span><a href="#inputs_sec">Next</a> <a href="#">Top</a></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6005 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6006 <div id="motifs" class="box"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6007 <p>No motifs were discovered!</p> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6008 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6009 <script>make_motifs();</script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6010 <!-- inputs and settings --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6011 <div id="inputs_sec" class="header"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6012 <h2>Inputs & Settings</h2> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6013 <span><a href="#motifs_sec">Previous</a> <a href="#info_sec">Next</a> <a href="#">Top</a></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6014 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6015 <div class="box"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6016 <h4>Sequences</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6017 <table id="seq_info" class="inputs"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6018 <tr><th>Source <div class="help" data-topic="pop_seq_source"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6019 <th>Alphabet <div class="help" data-topic="pop_seq_alph"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6020 <th>Sequence Count <div class="help" data-topic="pop_seq_count"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6021 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6022 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6023 <td id="ins_seq_source"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6024 <td id="ins_seq_alphabet"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6025 <td id="ins_seq_count"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6026 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6027 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6028 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6029 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6030 var db = data.sequence_db; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6031 $("ins_seq_source").innerHTML = db.file; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6032 $("ins_seq_alphabet").innerHTML = dreme_alphabet.get_alphabet_name(); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6033 $("ins_seq_count").innerHTML = db.count; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6034 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6035 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6036 <h4>Control Sequences</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6037 <table id="seq_info" class="inputs"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6038 <tr><th>Source <div class="help" data-topic="pop_seq_source"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6039 <th>Sequence Count <div class="help" data-topic="pop_seq_count"></div></th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6040 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6041 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6042 <td id="ins_cseq_source"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6043 <td id="ins_cseq_count"></td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6044 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6045 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6046 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6047 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6048 var db = data.control_db; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6049 if (db.from == "shuffled") { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6050 $("ins_cseq_source").innerHTML = "Shuffled Sequences"; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6051 } else { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6052 $("ins_cseq_source").innerHTML = db.file; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6053 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6054 $("ins_cseq_count").innerHTML = db.count; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6055 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6056 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6057 <h4>Background</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6058 <span id="alpha_bg"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6059 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6060 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6061 $("alpha_bg").appendChild(make_alpha_bg(dreme_alphabet, data.control_db.freqs)); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6062 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6063 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6064 <h4>Other Settings</h4> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6065 <table id="tbl_settings" class="inputs hide_advanced"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6066 <tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6067 <th>Strand Handling</th> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6068 <td id="opt_strand"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6069 <span class="strand_none">This alphabet only has one strand</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6070 <span class="strand_given">Only the given strand is processed</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6071 <span class="strand_both">Both the given and reverse complement strands are processed</span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6072 </td> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6073 </tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6074 <tr><th># REs to Generalize</th><td id="opt_ngen"></td></tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6075 <tr><th>Shuffle Seed</th><td id="opt_seed"></td></tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6076 <tr><th>E-value Threshold</th><td id="opt_stop_evalue"></td></tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6077 <tr><th>Max Motif Count</th><td id="opt_stop_count"></td></tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6078 <tr><th>Max Run Time</th><td id="opt_stop_time"></td></tr> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6079 </table> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6080 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6081 { |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6082 $("opt_strand").className = (dreme_alphabet.has_complement() ? (data.options.revcomp ? "both" : "given") : "none"); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6083 $("opt_ngen").innerHTML = data.options.ngen; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6084 $("opt_seed").innerHTML = data.options.seed; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6085 $("opt_stop_evalue").innerHTML = data.options.stop.evalue; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6086 $("opt_stop_count").innerHTML = (typeof data.options.stop.count == "number" ? data.options.stop.count : "No maximum motif count."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6087 $("opt_stop_time").innerHTML = (typeof data.options.stop.time == "number" ? data.options.stop.time + " seconds." : "No maximum running time."); |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6088 } |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6089 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6090 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6091 <!-- list information on this program --> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6092 <div id="info_sec" class="bar" style="position:relative"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6093 <div style="position: absolute; right: 0;"><a href="#inputs_sec">Previous</a> <a href="#">Top</a></div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6094 <div class="subsection"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6095 <h5 id="version">DREME version</h5> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6096 <span id="ins_version"></span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6097 (Release date: <span id="ins_release"></span>)<br> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6098 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6099 <script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6100 $("ins_version").innerHTML = data["version"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6101 $("ins_release").innerHTML = data["release"]; |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6102 </script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6103 <div class="subsection"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6104 <h5 id="reference">Reference</h5> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6105 <span class="citation"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6106 Timothy L. Bailey, "DREME: Motif discovery in transcription factor ChIP-seq data", <i>Bioinformatics</i>, <b>27</b>(12):1653-1659, 2011. |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6107 <a href="http://bioinformatics.oxfordjournals.org/content/27/12/1653">[full text]</a> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6108 </span> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6109 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6110 <div class="subsection"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6111 <h5 id="command">Command line</h5> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6112 <textarea id="cmd" rows="3" style="width:100%;" readonly="readonly"> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6113 </textarea> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6114 <script>$("cmd").value = data["cmd"].join(" ");</script> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6115 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6116 </div> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6117 |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6118 </body> |
cb8a2242bf03
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/meme commit e2cf796f991cbe8c96e0cc5a0056b7255ac3ad6b
iuc
parents:
diff
changeset
|
6119 </html> |