diff delete_features.xml @ 7:f9a6e151b3b4 draft

planemo upload for repository https://github.com/TAMU-CPT/galaxy-webapollo commit 52b9e5bf6a6efb09a5cb845ee48703651c644174
author eric-rasche
date Tue, 27 Jun 2017 04:05:17 -0400
parents 7610987e0c48
children
line wrap: on
line diff
--- a/delete_features.xml	Sat Mar 04 18:00:52 2017 -0500
+++ b/delete_features.xml	Tue Jun 27 04:05:17 2017 -0400
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<tool id="edu.tamu.cpt2.webapollo.delete_features" name="Delete all annotations from an Apollo record" version="1.2">
+<tool id="edu.tamu.cpt2.webapollo.delete_features" name="Delete all annotations from an Apollo record" version="1.5" profile="16.04">
   <description></description>
   <macros>
     <import>macros.xml</import>
@@ -8,32 +8,36 @@
   <expand macro="requirements"/>
   <command detect_errors="aggressive"><![CDATA[
 #if str($ask_one) == "yes":
-    #if str($ask_two) == "yes":
-        ## Nope, still don't trust them to not be dumb (or malicious), so we backup first.
-        python $__tool_directory__/export.py
-        @ADMIN_AUTH@
-        @ORG_OR_GUESS@
-        --gff "$gff_out"
-        --fasta "$fasta_out"
-        --json "$json_out";
+	## Nope, still don't trust them to not be dumb (or malicious), so we backup first.
+	python $__tool_directory__/export.py
+	@ADMIN_AUTH@
+	@ORG_OR_GUESS@
+	--gff "$gff_out"
+	--fasta "$fasta_out"
+	--json "$json_out";
 
-        ## Now we delete
-        python $__tool_directory__/delete_features.py
-        @ADMIN_AUTH@
-        @ORG_OR_GUESS@
-        "$__user_email__"
-        > $output;
-    #else
-        echo "Nothing to do" > $output;
-    #end if
+	## Now we delete
+	python $__tool_directory__/delete_features.py
+	@ADMIN_AUTH@
+	@ORG_OR_GUESS@
+	"$__user_email__"
+	#if str($filter) != "all"
+		--type $filter
+	#end if
+	> $output;
 #else
     echo "Nothing to do" > $output;
 #end if
     ]]></command>
   <inputs>
     <expand macro="org_or_guess" />
+    <param name="filter" type="select" label="Feature Type Filter">
+        <option value="all">All</option>
+        <option value="mRNA">Genes</option>
+        <option value="terminator">Terminators</option>
+        <option value="tRNA">tRNAs</option>
+    </param>
     <param name="ask_one" type="boolean" truevalue="yes" falsevalue="" label="Are you SURE you want to do this?" help="It will PERMANENTLY delete all of the features on this organism."/>
-    <param name="ask_two" type="boolean" truevalue="yes" falsevalue="" label="Are you really, really SURE you want to do this?" help="There's NO coming back from this."/>
   </inputs>
   <outputs>
     <data format="tabular" name="output" label="Process and Error Log"/>
@@ -57,4 +61,3 @@
 @REFERENCES@
 ]]></help>
 </tool>
-