view extract-partitions.xml @ 9:1061711538c6 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/khmer commit 238d0992c63de53623c4fc05eec8bd8d67001997
author iuc
date Thu, 03 Oct 2024 13:46:53 +0000
parents adb3dd5a899f
children
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>
    <macros>
        <token name="@BINARY@">extract-partitions.py</token>
        <import>macros.xml</import>
    </macros>
    <expand macro="bio_tools"/>
    <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/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 name="distribution">
                <assert_contents>
                    <has_text text="99 1 1 99"/>
                </assert_contents>
            </output>
            <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>