view albacore_1D.xml @ 1:0a4f83207e53 draft

planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/albacore commit 4aa7a76a7b29c425dd89a020979e835d785d3c95-dirty
author jdv
date Wed, 06 Sep 2017 12:12:52 -0400
parents f8e25d69167d
children b658298e65d8
line wrap: on
line source

<tool id="albacore_1D" name="Albacore 1D" version="1.2.6">

    <description>ONT production basecaller</description>

    <!-- ***************************************************************** -->
   
    <!--
    <requirements>
        <requirement type="package" version="1.2.6">albacore</requirement>
    </requirements>
    -->

    <!-- ***************************************************************** -->

    <version_command>read_fast5_basecaller.py --version | perl -wnE'print "$1\n" for /\(version ([^\)]+)\)/g'</version_command>

    <!-- ***************************************************************** -->

    <command detect_errors="aggressive">
    <![CDATA[

    python3 $__tool_directory__/albacore_1D.py $input $output $out_format $demux \${GALAXY_SLOTS:-1}

    ]]>
    </command>

    <!-- ***************************************************************** -->

    <inputs>

        <param name="input" type="data" format="fast5_archive" label="Input reads" />
        <param name="out_format" type="select" label="Output format">
            <option value="fastq" selected="true">fastq</option>
            <option value="fast5">fast5</option>
        </param>
        <param name="demux" type="boolean" checked="false" label="Demultiplex" />

    </inputs>

    <!-- ***************************************************************** -->

    <outputs>

        <data name="output" format="fastq" label="${tool.name} on ${on_string} (reads)">
            <filter>demux is False</filter>
            <change_format>
                <when input="out_format" value="fast5" format="fast5_archive" />
            </change_format>
        </data>
        <collection type="list" name="output_collection_fastq" label="${tool.name} on ${on_string} (reads)">
            <filter>demux is True and out_format == 'fastq'</filter>
            <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="final" format="fastqsanger" />
        </collection>
        <collection type="list" name="output_collection_fast5" label="${tool.name} on ${on_string} (reads)">
            <filter>demux is True and out_format == 'fast5'</filter>
            <discover_datasets pattern="(?P&lt;name&gt;.*)" directory="final" format="fast5_archive" />
        </collection>
        <data name="table" format="tabular" from_work_dir="out_dir/sequencing_summary.txt" label="${tool.name} on ${on_string} (table)" />

    </outputs>

    <!-- ***************************************************************** -->

    <tests>
        <test>
            <param name="input" value="test_data.fast5.tar.gz" ftype="fast5_archive" />
            <output name="output" file="test_data.fastq" compare="diff" />
        </test>
    </tests>

    <!-- ***************************************************************** -->

    <help>
    <![CDATA[

**Description**

Albacore is a tool for basecalling Oxford Nanopore reads. It is distributed by
ONT to authorized community members only and thus is not packaged through
Galaxy or Bioconda. End users are responsible for installing and testing the
albacore software themselves and ensuring that it is in the galaxy user $PATH.

The Galaxy wrapper has modified albacore to take a gzip tarball of FAST5 reads
as input, such as can be produced by `poretools combine`, and always outputs a
single FASTQ file.

This is the 1D basecaller.

    ]]>
    </help>

    <!-- ***************************************************************** -->
    
    <citations>
    </citations>

</tool>