Repository 'thermo_raw_file_converter'
hg clone https://toolshed.g2.bx.psu.edu/repos/galaxyp/thermo_raw_file_converter

Changeset 1:15d2a50acaeb (2018-09-21)
Previous changeset 0:00c4b28150bd (2018-09-14) Next changeset 2:edbeb2956484 (2018-09-23)
Commit message:
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/ThermoRawfileParser commit a9276f2d097976168059eb91e18cf280ef7a45bb
modified:
thermo_converter.xml
b
diff -r 00c4b28150bd -r 15d2a50acaeb thermo_converter.xml
--- a/thermo_converter.xml Fri Sep 14 18:04:17 2018 -0400
+++ b/thermo_converter.xml Fri Sep 21 18:49:31 2018 -0400
[
@@ -11,7 +11,7 @@
 ThermoRawFileParser.sh
     -i=input.raw
     -o=./
-    -f=1
+    -f=$output_format
     #if $metadata:
         --metadata=1
     #end if
@@ -21,9 +21,17 @@
         <param name="input" type="data" format="thermo.raw" label="Thermo RAW file" help="" />
         <param name="metadata" type="boolean" truevalue="" falsevalue="" checked="False"
             label="Output metadata" help="" />
+        <param name="output_format" type="select" label="Choose an output format">
+            <option value="0">mgf</option>
+            <option value="1" selected="True">mzml</option>
+        </param>
     </inputs>
     <outputs>
-        <data format="mzml" name="output" from_work_dir="input.mzML" label="${tool.name} on ${on_string}" />
+        <data format="mzml" name="output" from_work_dir="input.mzML" label="${tool.name} on ${on_string}">
+            <change_format>
+                <when input="output_format" value="0" format="mgf" />
+            </change_format>
+        </data>
         <data format="txt" name="output_metadata" from_work_dir="input-metadata.txt" label="${tool.name} on ${on_string}: Metadata">
             <filter>metadata</filter>
         </data>
@@ -35,6 +43,13 @@
                 <has_text text="ThermoRawFileParser.sh"/>
             </assert_command>
         </test>
+        <test>
+            <param name="input" value="fake_input.txt"/>
+            <param name="output_format" value="0"/>
+            <assert_command>
+                <has_text text="-f=0"/>
+            </assert_command>
+        </test>
     </tests>
     <help>
 <![CDATA[