view poretools_hist.xml @ 2:d1805f9c4c82 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/poretools commit 506782d1e671505617ff539e6811fcdcc2c02cd5
author iuc
date Fri, 27 Sep 2024 07:51:47 +0000
parents 5a82eb9e1b89
children
line wrap: on
line source

<tool id="poretools_hist" name="Generate histogram" version="@VERSION@.1" profile="@PROFILE@">
    <description>of nanopore read lengths</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    <expand macro="requirements" />
    <command detect_errors="aggressive">
    <![CDATA[
@MPLBACKEND@
poretools hist '$input' --saveas histogram.$extension --min-length $min_length --max-length $max_length --num-bins $num_bins $theme_bw && mv histogram.$extension '$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="plot_options" />
        <expand macro="length_options" />
        <param argument="--num-bins" type="integer" value="50" label="Number of bins in the histogram" />
    </inputs>
    <outputs>
        <expand macro="image_output" />
    </outputs>
    <tests>
        <test>
            <expand macro="test_input" />
            <param name="extension" value="png" />
            <output name="output" file="poretools-hist-out1.png" ftype="png" compare="sim_size" />
        </test>
        <test>
            <expand macro="test_input" />
            <param name="extension" value="pdf" />
            <output name="output" file="poretools-hist-out1.pdf" ftype="pdf" lines_diff="272" />
        </test>
        <test>
            <expand macro="test_input" />
            <param name="extension" value="svg" />
            <output name="output" file="poretools-hist-out1.svg" ftype="svg" lines_diff="140" />
        </test>
    </tests>
    <help>
        Draw a histogram of read lengths in one or more nanopore reads.
    </help>
    <expand macro="citations" />
</tool>