# HG changeset patch # User gga # Date 1505123356 14400 # Node ID 11033bdad2ca46c70510bd765ce7c61310ef7a0e planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/jbrowse commit f745b23c84a615bf434d717c8c0e553a012f0268 diff -r 000000000000 -r 11033bdad2ca README.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.rst Mon Sep 11 05:49:16 2017 -0400 @@ -0,0 +1,9 @@ +JBrowse to container +==================== + + JBrowse is a fast, embeddable genome browser built completely with + JavaScript and HTML5 + +This tool is only useful when running both JBrowse and Galaxy containers as done +in the +`Galaxy Genome Annotation dockerized GMOD deployment example `__ diff -r 000000000000 -r 11033bdad2ca jbrowse_to_container.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jbrowse_to_container.py Mon Sep 11 05:49:16 2017 -0400 @@ -0,0 +1,23 @@ +#!/usr/bin/env python +from __future__ import print_function + +import argparse +import base64 + + +if __name__ == '__main__': + parser = argparse.ArgumentParser(description='Generates an iframe to access a jbrowse instance') + parser.add_argument('external_jbrowse_url', help='Jbrowse full URL') + + args = parser.parse_args() + + # This is base64 encoded to get past the toolshed's filters. + HTML_TPL = """ + PGh0bWw+PGhlYWQ+PHRpdGxlPkVtYmVkZGVkIEpCcm93c2UgQWNjZXNzPC90aXRsZT48c3R5bGUg + dHlwZT0idGV4dC9jc3MiPmJvZHkge3ttYXJnaW46IDA7fX0gaWZyYW1lIHt7Ym9yZGVyOiAwO3dp + ZHRoOiAxMDAlO2hlaWdodDogMTAwJX19PC9zdHlsZT48L2hlYWQ+PGJvZHk+PGlmcmFtZSBzcmM9 + IntiYXNlX3VybH0iPjwvaWZyYW1lPjwvYm9keT48L2h0bWw+DQo= + """ + HTML_TPL = base64.b64decode(HTML_TPL.replace('\n', '')) + +print(HTML_TPL.format(base_url=args.external_jbrowse_url)) diff -r 000000000000 -r 11033bdad2ca jbrowse_to_container.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jbrowse_to_container.xml Mon Sep 11 05:49:16 2017 -0400 @@ -0,0 +1,80 @@ + + + will replace any existing organism + + macros.xml + + + > "@DATA_DIR@/${dataset_name}/tracks.conf" + + && + #end for + + cp $trackList "@DATA_DIR@/datasets.conf" + + && + + python $__tool_directory__/jbrowse_to_container.py @JBROWSE_BASE_URL@ > $output + ]]> + + + + + + + + + +
+ + ^\w+$ + +
+
+
+ + + + + +
diff -r 000000000000 -r 11033bdad2ca macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Mon Sep 11 05:49:16 2017 -0400 @@ -0,0 +1,35 @@ + + + + + python + + + + + \$GALAXY_JBROWSE_SHARED_DIR + \$GALAXY_JBROWSE_SHARED_URL + 0.5.1 + + + + + + + + + + + + + + + + 10.1101/gr.094607.109 + + +