diff fetch_organism_jbrowse.xml @ 0:c6d7f19953a6 draft

planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo commit f745b23c84a615bf434d717c8c0e553a012f0268
author gga
date Mon, 11 Sep 2017 05:47:25 -0400
parents
children 9968eec7430e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fetch_organism_jbrowse.xml	Mon Sep 11 05:47:25 2017 -0400
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+<tool id="fetch_jbrowse" name="Retrieve JBrowse" version="3.2" profile="16.04">
+  <description>for an organism, from Apollo</description>
+  <macros>
+    <import>macros.xml</import>
+  </macros>
+  <expand macro="requirements"/>
+  <code file="webapollo.py"/>
+  <command detect_errors="aggressive"><![CDATA[
+mkdir -p $jbrowse.files_path/
+
+&&
+
+python $__tool_directory__/fetch_organism_jbrowse.py
+@ADMIN_AUTH@
+
+@ORG_OR_GUESS@
+$jbrowse.files_path/ &&
+
+cp $dummyIndex $jbrowse &&
+find $jbrowse.files_path -type f -printf '<li><a href="%P">%P</a></li>\n' | sort >> $jbrowse &&
+echo '</ul></body></html>' >> $jbrowse
+
+]]></command>
+  <configfiles>
+      <configfile name="dummyIndex">
+      <![CDATA[
+      <html>
+          <head>
+          </head>
+          <body>
+              <h1>JBrowse Data Directory</h1>
+              <p>
+                Hi! This is not a full JBrowse instance. JBrowse v0.4(+?)
+                started shipping with the ability to produce just the
+                "data" directory from a JBrowse instance, rather than a
+                complete, standalone instance. This was intended to be used
+                with the in-development Apollo integration, but may have other
+                uses as well.
+              </p>
+              <p>
+                <u>This is not usable on its own</u>. The output dataset may be
+                used with Apollo, or may be passed through the "JBrowse -
+                Convert to Standalone" tool in Galaxy to "upgrade" to a full
+                JBrowse instance.
+              </p>
+              <p>
+                  The following list is provided for your convenience / debugging.
+              </p>
+              <h2>Contained Files</h2>
+              <ul>
+          ]]>
+      </configfile>
+  </configfiles>
+  <inputs>
+    <expand macro="org_or_guess" />
+  </inputs>
+  <outputs>
+    <data format="html" name="jbrowse"/>
+  </outputs>
+  <tests>
+      <test expect_failure="true">
+          <conditional name="org_source">
+              <param name="source_select" value="direct"/>
+              <param name="org_raw" value="Test org" />
+          </conditional>
+          <expand macro="test_result" />
+      </test>
+  </tests>
+  <help><![CDATA[
+**What it does**
+
+Fetches the JBrowse directory from Apollo back into Galaxy.
+
+.. class:: warningmark
+
+If you provide an Apollo JSON file, only the first organism block will be used
+in Common Name determination, as it is improbable you wish to apply a single
+JBrowse instance to multiple organisms.
+
+@REFERENCES@
+]]></help>
+  <expand macro="citations"/>
+</tool>