view thermo_converter.xml @ 4:9381e3a3a1a6 draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/ThermoRawfileParser commit d570672a28e9603c044473e1278e48623a15e93e
author galaxyp
date Fri, 26 Apr 2019 14:32:39 -0400
parents 756817e04abe
children a3263ea5abb2
line wrap: on
line source

<tool id="thermo_raw_file_converter" name="Thermo" version="1.1.2">
    <description>RAW file converter</description>
    <requirements>
        <requirement type="package" version="1.1.2">ThermoRawFileParser</requirement>
    </requirements>
    <command>
<![CDATA[

ln -s '$input' ./input.raw &&

ThermoRawFileParser.sh
    -i=input.raw
    -o=./
    -f=$output_format
    #if $metadata:
        --metadata=1
    #end if
    &&
    #if $output_format == '0':
        mv ./input.mgf '$output'
    #else:
        mv ./input.mzML '$output'
    #end if
]]>
    </command>
    <inputs>
        <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}">
            <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>
    </outputs>
    <tests>
        <test>
            <param name="input" value="fake_input.txt"/>
            <assert_command>
                <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[

Thermo RAW file converter based on the great `ThermoRawFileParser <https://github.com/compomics/ThermoRawFileParser>`_ project.

]]>
    </help>
    <citations>
        <citation type="bibtex">@misc{Galaxy Proteomics Tools,
        author = {Niels Hulstaert, et al.},
        title = {Galaxy Proteomics Tools},
        publisher = {GitHub},
        journal = {GitHub repository},
        year = {2017}, url = {https://github.com/compomics/ThermoRawFileParser}}
        </citation>
    </citations>
</tool>