view extract-partitions.xml @ 8:adb3dd5a899f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/khmer commit 7599ef16dc8b83ee49236ed5bb229260c969b0ab
author iuc
date Mon, 17 Jun 2024 11:46:55 +0000
parents 98b53d46e851
children 1061711538c6
line wrap: on
line source

<tool id="khmer_extract_partitions" name="khmer: Extract partitions" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>Separate sequences that are annotated with partitions into grouped files</description>
    <expand macro="bio_tools"/>
    <macros>
        <token name="@BINARY@">extract-partitions.py</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="stdio" />
    <expand macro="version" />
    <command><![CDATA[
mkdir -p output &&
cd output &&
@BINARY@
--max-size $max_size
--min-partition-size $min_partition_size
$output_unassigned
output
#for input in $inputs
    $input
#end for
]]>
    </command>
    <inputs>
        <expand macro="input_sequences_filenames" />
        <param argument="--max-size" type="integer" label="Max group size" value="1000000"
            help="No more than this many number of sequences will be stored in each output"/>
        <param name="min_partition_size" type="integer" label="Min partition size" value="5"
            help="The minimum partition size worth keeping (--min-partition-size/-m)" />
        <param name="output_unassigned" type="boolean" checked="false" truevalue="--output-unassigned" falsevalue=""
            label="Output unassigned sequences" help="(--output-unassigned/-U)" />
    </inputs>
    <outputs>
        <data name="distribution" format="txt" from_work_dir="output.dist" label="${tool.name} on ${on_string}: Partition size distribution" />
        <collection name="groups-of-partitions" type="list" format="fasta">
            <discover_datasets pattern="__name__" directory="output" format="fasta"/>
        </collection>
    </outputs>
    <tests>
        <test>
            <param name="inputs" value="random-20-a.fa.part"/>
            <output_collection name="groups-of-partitions">
                <element name="output.group0000.fa" file="random-20-a.part.extract.fa" />
            </output_collection>
        </test>

    </tests>
    <help><![CDATA[
Separate sequences that are annotated with partitions into grouped files.

@HELP_FOOTER@
]]>
    </help>
    <citations>
        <expand macro="software-citation" />
        <expand macro="graph-citation" />
    </citations>
</tool>