Repository 'bandage'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/bandage

Changeset 2:58124285e462 (2019-07-05)
Previous changeset 1:ebe4463404b4 (2019-05-15) Next changeset 3:b2860df42e16 (2019-12-05)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bandage commit 87337151f2f9ae1946db8b3a6da1c4f512ae135d
modified:
bandage_image.xml
macros.xml
added:
test-data/out_labels.svg
b
diff -r ebe4463404b4 -r 58124285e462 bandage_image.xml
--- a/bandage_image.xml Wed May 15 04:11:22 2019 -0400
+++ b/bandage_image.xml Fri Jul 05 11:36:09 2019 -0400
[
@@ -1,12 +1,14 @@
-<tool id="bandage_image" name="Bandage Image" version="@TOOL_VERSION@+galaxy0">
+<tool id="bandage_image" name="Bandage Image" version="@TOOL_VERSION@+galaxy1">
     <description>visualize de novo assembly graphs</description>
     <macros>
         <import>macros.xml</import>
     </macros>
     <expand macro="requirements"/>
     <expand macro="version_command"/>
-    <command detect_errors="exit_code">
-    <![CDATA[
+    <command detect_errors="exit_code"> <![CDATA[
+## set headless mode
+export QT_QPA_PLATFORM='offscreen' &&
+
 Bandage
     image
     '$input_file'
@@ -17,16 +19,21 @@
     #if $width:
         --width '$width'
     #end if
+    $names
+    $lengths
     ]]></command>
     <inputs>
         <param name="input_file" type="data" format="txt" label="Graphical Fragment Assembly" help="Supports multiple assembly graph formats: LastGraph (Velvet), FASTG (SPAdes), Trinity.fasta, ASQG and GFA."/>
         <param argument="--height" type="integer" min="1" value="1000" optional="True" label="Image height" help="If only height or width is set, the other will be determined automatically. If both are set, the image will be exactly that size. Default: 1000."/>
         <param argument="--width" type="integer" min="1" optional="True" label="Image width" help="If only height or width is set, the other will be determined automatically. If both are set, the image will be exactly that size. Default: not set."/>
+        <param argument="--names" type="boolean" truevalue="--names" falsevalue="" label="Node name labels?"/>
+        <param argument="--lengths" type="boolean" truevalue="--lengths" falsevalue="" label="Node length labels?"/>
         <param name="output_format" type="select" label="Produce jpg, png or svg file?">
             <option selected="True" value="jpg">.jpg</option>
             <option value="png">.png</option>
             <option value="svg">.svg</option>
         </param>
+
     </inputs>
     <outputs>
         <data name="outfile" format="jpg" from_work_dir="out.*" label="${tool.name} on ${on_string}: Assembly Graph Image">
@@ -37,22 +44,29 @@
         </data>
     </outputs>
     <tests>
-        <test>
+        <test><!-- test with default settings -->
             <param name="input_file" ftype="tabular" value="gfa.tabular"/>
             <output name="outfile" ftype="jpg" file="out.jpg" compare="sim_size" delta="70000"/>
         </test>
-        <test>
+        <test><!-- test with width and height parameters -->
             <param name="input_file" ftype="tabular" value="gfa.tabular"/>
             <param name="height" value="100"/>
             <param name="width" value="100"/>
             <param name="output_format" value="png"/>
             <output name="outfile" ftype="png" file="out.png" compare="sim_size" delta="120000"/>
         </test>
-        <test>
+        <test><!-- test svg output -->
             <param name="input_file" ftype="tabular" value="gfa.tabular"/>
             <param name="output_format" value="svg"/>
             <output name="outfile" ftype="svg" file="out.svg" compare="sim_size" delta="120000"/>
         </test>
+        <test><!-- test with node name and length labels -->
+            <param name="input_file" ftype="txt" value="gfa.tabular"/>
+            <param name="output_format" value="svg"/>
+            <param name="names" value="--names"/>
+            <param name="lengths" value="--lengths"/>
+            <output name="outfile" ftype="svg" file="out_labels.svg" compare="sim_size" delta="250000"/>
+        </test>
     </tests>
     <help><![CDATA[
 @BANDAGE_OVERVIEW@
b
diff -r ebe4463404b4 -r 58124285e462 macros.xml
--- a/macros.xml Wed May 15 04:11:22 2019 -0400
+++ b/macros.xml Fri Jul 05 11:36:09 2019 -0400
b
@@ -1,5 +1,5 @@
 <macros>
-    <token name="@TOOL_VERSION@">0.8.1+galaxy0</token>
+    <token name="@TOOL_VERSION@">0.8.1</token>
     <xml name="requirements">
         <requirements>
             <requirement type="package" version="@TOOL_VERSION@">bandage</requirement>
b
diff -r ebe4463404b4 -r 58124285e462 test-data/out_labels.svg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/out_labels.svg Fri Jul 05 11:36:09 2019 -0400
b
b'@@ -0,0 +1,29748 @@\n+<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n+<svg width="438.503mm" height="352.778mm"\n+ viewBox="0 0 1243 1000"\n+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"  version="1.2" baseProfile="tiny">\n+<title>Qt SVG Document</title>\n+<desc>Generated with Qt</desc>\n+<defs>\n+</defs>\n+<g fill="none" stroke="black" stroke-width="1" fill-rule="evenodd" stroke-linecap="square" stroke-linejoin="bevel" >\n+\n+<g fill="#ffffff" fill-opacity="1" stroke="none" transform="matrix(1,0,0,1,0,0)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+<rect x="0" y="0" width="1243" height="1000"/>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1,0,0,1,0,0)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1,0,0,1,0,0)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="0.705882" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+<path vector-effect="none" fill-rule="evenodd" d="M544.013,621.657 C546.578,621.796 544.755,624.2 544.579,626.763 "/>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="0.705882" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+<path vector-effect="none" fill-rule="evenodd" d="M544.013,621.657 C547.479,621.845 541.176,624.147 540.254,627.493 "/>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="0.705882" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+<path vector-effect="none" fill-rule="evenodd" d="M536.258,557.398 C537.577,559.14 535.22,563.438 536.614,561.755 "/>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="squar'..b' L-10.5313,-2.0625 L-14.4688,-2.0625 L-14.4688,-3.20313 L-10.8438,-8.75 M-2.90625,-7.71875 L-5.89063,-3.04688 L-2.90625,-3.04688 L-2.90625,-7.71875 M-3.21875,-8.75 L-1.71875,-8.75 L-1.71875,-3.04688 L-0.46875,-3.04688 L-0.46875,-2.0625 L-1.71875,-2.0625 L-1.71875,0 L-2.90625,0 L-2.90625,-2.0625 L-6.84375,-2.0625 L-6.84375,-3.20313 L-3.21875,-8.75 M1.5,-0.1875 L1.5,-1.26563 C1.80208,-1.11979 2.10417,-1.01042 2.40625,-0.9375 C2.70833,-0.864583 3.01042,-0.828125 3.3125,-0.828125 C4.09375,-0.828125 4.6901,-1.09115 5.10156,-1.61719 C5.51302,-2.14323 5.74479,-2.94271 5.79688,-4.01563 C5.57813,-3.67188 5.29427,-3.41146 4.94531,-3.23438 C4.59635,-3.05729 4.20833,-2.96875 3.78125,-2.96875 C2.90625,-2.96875 2.21354,-3.23177 1.70313,-3.75781 C1.19271,-4.28385 0.9375,-5.01042 0.9375,-5.9375 C0.9375,-6.83333 1.20313,-7.55208 1.73438,-8.09375 C2.26563,-8.63542 2.97396,-8.90625 3.85938,-8.90625 C4.86979,-8.90625 5.64323,-8.51823 6.17969,-7.74219 C6.71615,-6.96615 6.98438,-5.83854 6.98438,-4.35938 C6.98438,-2.98438 6.65625,-1.88542 6,-1.0625 C5.34375,-0.239583 4.46354,0.171875 3.35938,0.171875 C3.05729,0.171875 2.75521,0.143229 2.45313,0.0859375 C2.15104,0.0286458 1.83333,-0.0625 1.5,-0.1875 M3.85938,-3.89063 C4.39063,-3.89063 4.8125,-4.07292 5.125,-4.4375 C5.4375,-4.80208 5.59375,-5.30208 5.59375,-5.9375 C5.59375,-6.5625 5.4375,-7.05729 5.125,-7.42188 C4.8125,-7.78646 4.39063,-7.96875 3.85938,-7.96875 C3.32813,-7.96875 2.90885,-7.78646 2.60156,-7.42188 C2.29427,-7.05729 2.14063,-6.5625 2.14063,-5.9375 C2.14063,-5.30208 2.29427,-4.80208 2.60156,-4.4375 C2.90885,-4.07292 3.32813,-3.89063 3.85938,-3.89063 M17.4688,-3.28125 C17.4688,-4.07292 17.3047,-4.69271 16.9766,-5.14063 C16.6484,-5.58854 16.2031,-5.8125 15.6406,-5.8125 C15.0677,-5.8125 14.6172,-5.58854 14.2891,-5.14063 C13.9609,-4.69271 13.7969,-4.07292 13.7969,-3.28125 C13.7969,-2.48958 13.9609,-1.86719 14.2891,-1.41406 C14.6172,-0.960938 15.0677,-0.734375 15.6406,-0.734375 C16.2031,-0.734375 16.6484,-0.960938 16.9766,-1.41406 C17.3047,-1.86719 17.4688,-2.48958 17.4688,-3.28125 M13.7969,-5.5625 C14.026,-5.95833 14.3125,-6.25 14.6563,-6.4375 C15,-6.625 15.4115,-6.71875 15.8906,-6.71875 C16.6927,-6.71875 17.3438,-6.40365 17.8438,-5.77344 C18.3438,-5.14323 18.5938,-4.3125 18.5938,-3.28125 C18.5938,-2.25 18.3438,-1.41667 17.8438,-0.78125 C17.3438,-0.145833 16.6927,0.171875 15.8906,0.171875 C15.4115,0.171875 15,0.0755208 14.6563,-0.117188 C14.3125,-0.309896 14.026,-0.598958 13.7969,-0.984375 L13.7969,0 L12.7188,0 L12.7188,-9.125 L13.7969,-9.125 L13.7969,-5.5625 M21.4063,-0.984375 L21.4063,2.5 L20.3281,2.5 L20.3281,-6.5625 L21.4063,-6.5625 L21.4063,-5.5625 C21.6354,-5.95833 21.9219,-6.25 22.2656,-6.4375 C22.6094,-6.625 23.0208,-6.71875 23.5,-6.71875 C24.3021,-6.71875 24.9531,-6.40365 25.4531,-5.77344 C25.9531,-5.14323 26.2031,-4.3125 26.2031,-3.28125 C26.2031,-2.25 25.9531,-1.41667 25.4531,-0.78125 C24.9531,-0.145833 24.3021,0.171875 23.5,0.171875 C23.0208,0.171875 22.6094,0.0755208 22.2656,-0.117188 C21.9219,-0.309896 21.6354,-0.598958 21.4063,-0.984375 M25.0781,-3.28125 C25.0781,-4.07292 24.9141,-4.69271 24.5859,-5.14063 C24.2578,-5.58854 23.8125,-5.8125 23.25,-5.8125 C22.6771,-5.8125 22.2266,-5.58854 21.8984,-5.14063 C21.5703,-4.69271 21.4063,-4.07292 21.4063,-3.28125 C21.4063,-2.48958 21.5703,-1.86719 21.8984,-1.41406 C22.2266,-0.960938 22.6771,-0.734375 23.25,-0.734375 C23.8125,-0.734375 24.2578,-0.960938 24.5859,-1.41406 C24.9141,-1.86719 25.0781,-2.48958 25.0781,-3.28125 "/>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1.31066,0,0,1.31066,27.4195,27.6655)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+\n+<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="1" stroke-linecap="square" stroke-linejoin="bevel" transform="matrix(1,0,0,1,0,0)"\n+font-family="Sans Serif" font-size="9" font-weight="400" font-style="normal" \n+>\n+</g>\n+</g>\n+</svg>\n'