<tool id="poretools_winner" name="Get longest read" version="@VERSION@.0" profile="@PROFILE@">
    <description>from a set of FAST5 files.</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    <expand macro="requirements" />
    <command detect_errors="aggressive">
    <![CDATA[
        poretools winner --type $type '$input' > '$output'
    ]]>
    </command>
    <inputs>
        <param name="input" type="data" format="h5,fast5.tar,fast5.tar.gz,fast5.tar.bz2" label="Input fast5 or archive of fast5 files" />
        <expand macro="stat_options" />
    </inputs>
    <outputs>
        <data name="output" format="tabular" />
    </outputs>
    <tests>
        <test>
            <expand macro="test_input" />
            <param name="type" value="fwd" />
            <output name="output" file="poretools-winner-out1.tabular" ftype="tabular" />
        </test>
        <test>
            <expand macro="test_input" />
            <param name="type" value="rev" />
            <output name="output" file="poretools-winner-out2.tabular" ftype="tabular" />
        </test>
        <test>
            <expand macro="test_input" />
            <param name="type" value="2D" />
            <output name="output" file="poretools-winner-out3.tabular" ftype="tabular" />
        </test>
        <test>
            <expand macro="test_input" />
            <param name="type" value="best" />
            <output name="output" file="poretools-winner-out4.tabular" ftype="tabular" />
        </test>
    </tests>
    <help>
        Report the longest read among a set of FAST5 files.
    </help>
    <expand macro="citations" />
</tool>
