view poretools_hist.xml @ 1:5a82eb9e1b89 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/poretools commit d50758dbe64462ba3cdcb7f1df0bcc57a310deab"
author iuc
date Sun, 19 Jan 2020 09:06:53 -0500
parents 47936349f3e9
children
line wrap: on
line source

<?xml version="1.0"?>
<tool id="poretools_hist" name="Generate histogram" version="@VERSION@.1">
    <description>of nanopore read lengths</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <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 name="num_bins" 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>