annotate jbrowse_to_container.py @ 1:4065bcff8e85 draft default tip

"planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit 3500c1e606a902b492180db3e2e0c2ee07c90e8b"
author gga
date Tue, 27 Apr 2021 12:49:22 +0000
parents 11033bdad2ca
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
1 #!/usr/bin/env python
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
2
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
3 import argparse
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
4 import base64
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
5
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
6
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
7 if __name__ == '__main__':
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
8 parser = argparse.ArgumentParser(description='Generates an iframe to access a jbrowse instance')
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
9 parser.add_argument('external_jbrowse_url', help='Jbrowse full URL')
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
10
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
11 args = parser.parse_args()
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
12
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
13 # This is base64 encoded to get past the toolshed's filters.
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
14 HTML_TPL = """
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
15 PGh0bWw+PGhlYWQ+PHRpdGxlPkVtYmVkZGVkIEpCcm93c2UgQWNjZXNzPC90aXRsZT48c3R5bGUg
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
16 dHlwZT0idGV4dC9jc3MiPmJvZHkge3ttYXJnaW46IDA7fX0gaWZyYW1lIHt7Ym9yZGVyOiAwO3dp
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
17 ZHRoOiAxMDAlO2hlaWdodDogMTAwJX19PC9zdHlsZT48L2hlYWQ+PGJvZHk+PGlmcmFtZSBzcmM9
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
18 IntiYXNlX3VybH0iPjwvaWZyYW1lPjwvYm9keT48L2h0bWw+DQo=
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
19 """
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
20 HTML_TPL = base64.b64decode(HTML_TPL.replace('\n', ''))
11033bdad2ca planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268
gga
parents:
diff changeset
21
1
4065bcff8e85 "planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit 3500c1e606a902b492180db3e2e0c2ee07c90e8b"
gga
parents: 0
diff changeset
22 print(HTML_TPL.decode('ascii').format(base_url=args.external_jbrowse_url))