view dorado_pod5_convert.xml @ 4:3479b06460a4 draft

planemo upload for repository https://github.com/usegalaxy-au/tools-au/tree/master/tools/dorado commit 8f48f7ee85162eeaa9c0247c7bb7d699f84d6ca7
author galaxy-australia
date Mon, 04 Nov 2024 03:26:04 +0000
parents 1145758d2f0b
children
line wrap: on
line source

<tool id="dorado_pod5_convert" name="fast5 to pod5" version="@VERSION@+galaxy0" python_template_version="3.5" profile="24.1">
    <description>converter for raw Oxford Nanopore data</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="xrefs"/>
    <expand macro="requirements"/>
    <command><![CDATA[

mkdir input_fast5

&&

tar -xf '$fast5_in' -C input_fast5

&&

pod5 convert fast5
--threads \${GALAXY_SLOTS:-4}
--recursive
--output output.pod5
input_fast5

    ]]>
    </command>
    <inputs>
        <param name="fast5_in" type="data" format="fast5.tar" label="Oxford Nanopore raw data in fast5 format in a tar archive."/>
    </inputs>
    <outputs>
        <data format="pod5" name="pod5_out" label="${on_string} converted to pod5 from fast5" from_work_dir="output.pod5"/>
    </outputs>
    <tests>
        <test expect_num_outputs="1">
            <param name="fast5_in" ftype="fast5.tar" value="FAL00375_473bf0ed_0.ten_reads.0_0.fast5.tar"/>
            <output name="pod5_out" ftype="pod5">
                <assert_contents>
                    <has_size value="519736" delta="50000"/>
                </assert_contents>
            </output>
        </test>
        <test expect_num_outputs="1">
            <param name="fast5_in" ftype="fast5.tar.gz" value="reads_in_directories.tar.gz"/>
            <output name="pod5_out" ftype="pod5">
                <assert_contents>
                    <has_size value="950136" delta="90000"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
        Convert fast5 to `pod5 <https://github.com/nanoporetech/pod5-file-format>`__ for basecalling with Dorado.

        Combine all your fast5 files into a single tar archive, and optionally
        compress the archive with Gzip, Bzip2 or XZ, before uploading it to
        Galaxy.

            ]]></help>
    <expand macro="citation"/>
</tool>