view albacore_1D.xml @ 4:8a9f61d08201 draft

planemo upload for repository https://github.com/jvolkening/galaxy-tools/tree/master/tools/albacore commit 9a7fa5134243f712595bef72121b8006be8a318b
author jdv
date Fri, 13 Oct 2017 16:13:22 -0400
parents b658298e65d8
children 4d72adba794f
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.tar" 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.tar.gz" />
            </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.tar.gz" />
        </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.tar.gz" />
            <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>