diff create_or_update_organism.xml @ 3:d4ae83dedb14 draft

planemo upload for repository https://github.com/TAMU-CPT/galaxy-webapollo commit 4ac38d0b6dba1183f3e78eb5c224c7051064b4a5
author eric-rasche
date Thu, 12 Jan 2017 11:52:28 -0500
parents 6002cc0df04e
children 7610987e0c48
line wrap: on
line diff
--- a/create_or_update_organism.xml	Tue May 03 13:48:11 2016 -0400
+++ b/create_or_update_organism.xml	Thu Jan 12 11:52:28 2017 -0500
@@ -1,58 +1,53 @@
 <?xml version="1.0"?>
-<tool id="edu.tamu.cpt2.webapollo.create_or_update" name="WA2: Create or Update Organism" version="1.5">
+<tool id="edu.tamu.cpt2.webapollo.create_or_update" name="Create or Update Organism" version="3.0">
   <description>will create the organism if it doesn't exist, and update otherwise</description>
   <macros>
     <import>macros.xml</import>
   </macros>
+  <code file="webapollo.py"/>
   <expand macro="requirements"/>
   <command detect_errors="aggressive"><![CDATA[
-cp -R ${jbrowse.extra_files_path}/data/ /opt/apollo/data/galaxy/${jbrowse.id};
+cp -R ${jbrowse.extra_files_path}/data/ @DATA_DIR@/${jbrowse.id};
 
 python $__tool_directory__/create_or_update_organism.py
 
-@AUTH@
-
-#if str($blatdb) != "None":
-    --blatdb "$blatdb"
-#end if
+@ADMIN_AUTH@
 
 --genus "$genus"
 --species "$species"
 $public
 
-@CN_OR_GUESS@
+@ORG_OR_GUESS@
 
-"/opt/apollo/data/galaxy/${jbrowse.id}"
+"@DATA_DIR@/${jbrowse.id}"
 
 $__user_email__
 
 > $output]]></command>
   <inputs>
     <param name="jbrowse" type="data" format="html" label="JBrowse HTML Output" />
-    <param name="blatdb" type="data" label="Blat DB" optional="True" />
-
-    <expand macro="cn_or_guess" />
-    <param name="genus" type="text" label="Host Bacteria" optional="True" />
-    <param name="species" type="text" label="Phage Name" optional="True" />
+    <expand macro="org_or_guess" />
+    <param name="genus" type="text" label="Genus" optional="False" />
+    <param name="species" type="text" label="Species" optional="True" />
     <param name="public" type="boolean" truevalue="--public" falsevalue="" label="Is Organism Public" />
   </inputs>
   <outputs>
     <data format="json" name="output"/>
   </outputs>
   <help><![CDATA[
-**NOTA BENE**
-
-All organism data is currently shared. By using this tool your annotation data will be visible to your fellow lab members.
-This will be fixed at a later date.
-
-This only works with JBrowse v0.4 and above!
-
 **What it does**
 
 Adds an organism to the Apollo database. The tool takes the output of a
 JBrowse run as that contains all of the necessary information for which
 tracks are appropriate for a given analysis.
 
+**WARNINGS**
+
+- Do not use names which conflict with other users.
+- 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>
 </tool>