changeset 1:b4163d2f64ab draft default tip

"planemo upload for repository https://github.com/tjunier/newick_utils commit 352b2b1efa8400e145f02adb34e36c4af4524e54"
author iuc
date Sun, 01 Dec 2019 17:33:02 -0500
parents fe4235285ee8
children
files newick_display.xml
diffstat 1 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/newick_display.xml	Mon Oct 01 09:46:08 2018 -0400
+++ b/newick_display.xml	Sun Dec 01 17:33:02 2019 -0500
@@ -1,10 +1,11 @@
-<tool id="newick_display" name="Newick Display" version="1.6">
+<tool id="newick_display" name="Newick Display" version="1.6+galaxy1">
     <description>visualize a phylogenetic tree</description>
     <edam_operations>
         <edam_operation>operation_0567</edam_operation>
     </edam_operations>
     <requirements>
         <requirement type="package" version="1.6">newick_utils</requirement>
+        <requirement type="package" version="7.0.9_6">imagemagick</requirement>
     </requirements>
     <command detect_errors="aggressive"><![CDATA[
 nw_display
@@ -36,15 +37,13 @@
     -w  $width
     $radial
 
-    '$fileNewick' > output.svg
+    '$fileNewick'
 
-#if $outformat == 'png':
-    && convert output.svg output.png
-    && mv output.png '$output'
-#else:
-    && mv output.svg '$output'
-#end if
-
+    #if $outformat == 'png':
+        | convert - 'png:$output'
+    #else:
+        > '$output'
+    #end if
     ]]></command>
     <inputs>
         <param name="fileNewick" format="txt,newick,nw,nwk,nhx,mothur.tre" type="data" label="Newick file"/>
@@ -112,7 +111,7 @@
             <param name="outformat" value="png"/>
             <output name="output" file="tree.png" ftype="png" compare="sim_size" delta="15000"/>
         </test>
-         <test><!-- test with txt output format -->
+        <test><!-- test with txt output format -->
             <param name="fileNewick" value="tree.nwk"/>
             <param name="outformat" value="txt"/>
             <output name="output" file="tree.txt" ftype="txt"/>