Repository 'apollo_iframe'
hg clone https://toolshed.g2.bx.psu.edu/repos/gga/apollo_iframe

Changeset 9:b0714ffcf142 (2019-07-29)
Previous changeset 8:860ca63f4a59 (2019-04-10) Next changeset 10:c6172b538caf (2019-12-02)
Commit message:
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo commit 49fe23e3fb330234900946352fbc3a86deeeb639
modified:
json2iframe.py
json2iframe.xml
macros.xml
b
diff -r 860ca63f4a59 -r b0714ffcf142 json2iframe.py
--- a/json2iframe.py Wed Apr 10 13:58:21 2019 -0400
+++ b/json2iframe.py Mon Jul 29 10:08:38 2019 -0400
[
@@ -10,10 +10,11 @@
     parser.add_argument('apollo', help='Complete Apollo URL')
     parser.add_argument('json', type=argparse.FileType("r"), help='JSON Data')
     parser.add_argument('external_apollo_url')
+    parser.add_argument('--tracklist', action='store_true')
 
     args = parser.parse_args()
 
-    # https://fqdn/apollo/annotator/loadLink?loc=NC_005880:0..148317&organism=326&tracks=
+    # https://fqdn/apollo/annotator/loadLink?loc=NC_005880:0..148317&organism=326
     data = json.load(args.json)
 
     # This is base64 encoded to get past the toolshed's filters.
@@ -24,9 +25,9 @@
                 <style type="text/css">body {{margin: 0;}} iframe {{border: 0;width: 100%;height: 100%}}</style>
             </head>
             <body>
-                <iframe src="{base_url}/annotator/loadLink?loc={chrom}&organism={orgId}&tracklist=1"></iframe>
+                <iframe src="{base_url}/annotator/loadLink?loc={chrom}&organism={orgId}{tracklist}"></iframe>
             </body>
         </html>
     """
 
-    print(HTML_TPL.format(base_url=args.external_apollo_url, chrom="", orgId=data[0]['id']))
+    print(HTML_TPL.format(base_url=args.external_apollo_url, chrom="", orgId=data[0]['id'], tracklist='&tracklist=1' if args.tracklist else ''))
b
diff -r 860ca63f4a59 -r b0714ffcf142 json2iframe.xml
--- a/json2iframe.xml Wed Apr 10 13:58:21 2019 -0400
+++ b/json2iframe.xml Mon Jul 29 10:08:38 2019 -0400
b
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<tool id="iframe" name="Annotate" version="3.1">
+<tool id="iframe" name="Annotate" version="@WRAPPER_VERSION@">
   <description>opens an IFrame to Apollo</description>
   <macros>
     <import>macros.xml</import>
@@ -10,9 +10,12 @@
 @URL@
 '$json_file'
 @EXT_URL@
+$tracklist
 > $output]]></command>
   <inputs>
     <param name="json_file" type="data" format="json" label="Apollo Organism Listing" />
+    <param name="tracklist" type="boolean" truevalue="--tracklist" falsevalue="" label="Force the tracklist on in JBrowse"/>
+
   </inputs>
   <outputs>
     <data format="html" name="output"/>
b
diff -r 860ca63f4a59 -r b0714ffcf142 macros.xml
--- a/macros.xml Wed Apr 10 13:58:21 2019 -0400
+++ b/macros.xml Mon Jul 29 10:08:38 2019 -0400
b
@@ -1,5 +1,7 @@
 <?xml version="1.0"?>
 <macros>
+  <token name="@WRAPPER_VERSION@">4.0.0</token>
+
   <xml name="requirements">
     <requirements>
       <requirement type="package" version="2.7">python</requirement>
@@ -99,6 +101,7 @@
 
   <xml name="citations">
       <citations>
+        <citation type="doi">10.1371/journal.pcbi.1006790</citation>
       </citations>
   </xml>
   <xml name="gff3_input">
@@ -123,7 +126,7 @@
 **Citation**
 
 If you use this tool in Galaxy, please cite:
-Eric Rasche (2016), `Galaxy Apollo Tools <https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo>`_
+Helena Rasche, Anthony Bretaudeau, and Mateo Boudet (2019), `Galaxy Apollo Tools <https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo>`_
 ]]>
     </token>
 </macros>