From af65015823899688e185e9cc7948fc225831ea11 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Sat, 30 Nov 2019 18:21:27 +0100 Subject: [PATCH 1/2] newick display: remove png output imagemagick requirement was missing anyway. since for some reason neither imagemagick not graphicsmagick can convert the image I suggest to stick to svg only for now. --- tools/newick_utils/newick_display.xml | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/tools/newick_utils/newick_display.xml b/tools/newick_utils/newick_display.xml index fbe029b5e8a..83c6d79c2b9 100644 --- a/tools/newick_utils/newick_display.xml +++ b/tools/newick_utils/newick_display.xml @@ -1,4 +1,4 @@ - + visualize a phylogenetic tree operation_0567 @@ -36,15 +36,7 @@ nw_display -w $width $radial - '$fileNewick' > output.svg - -#if $outformat == 'png': - && convert output.svg output.png - && mv output.png '$output' -#else: - && mv output.svg '$output' -#end if - + '$fileNewick' > '$output' ]]> @@ -80,14 +72,12 @@ nw_display - - @@ -104,13 +94,6 @@ nw_display - - - - - - - From 34929cfe6c9d3dd7cd48f91e6039d87ca3fe27b3 Mon Sep 17 00:00:00 2001 From: M Bernt Date: Sun, 1 Dec 2019 12:22:22 +0100 Subject: [PATCH 2/2] newick: added imagemagick restored png output slightly better redirection --- tools/newick_utils/newick_display.xml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tools/newick_utils/newick_display.xml b/tools/newick_utils/newick_display.xml index 83c6d79c2b9..683a373d276 100644 --- a/tools/newick_utils/newick_display.xml +++ b/tools/newick_utils/newick_display.xml @@ -5,6 +5,7 @@ newick_utils + imagemagick '$output' + '$fileNewick' + + #if $outformat == 'png': + | convert - 'png:$output' + #else: + > '$output' + #end if ]]> @@ -72,12 +79,14 @@ nw_display + + @@ -95,7 +104,14 @@ nw_display - + + + + + + + +