view dbkit_merge.xml @ 1:5b97150fe325 draft

"planemo upload commit aa6c4b1d15a2d5361d68c7eb313551bddf2700fa"
author guerler
date Mon, 29 Mar 2021 21:46:45 +0000
parents 372a29b9fe4b
children 34214e1c16e8
line wrap: on
line source

<tool id="ffindex_dbkit_merge" name="DBKit Merge" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="MIT" profile="20.01">
    <description>two databases</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
    dbkit_merge.py
        @db_source@
        @db_source2@
        -oi '$outindex'
        -od '$outdata'
        -log '$logfile'
    ]]>    </command>
    <inputs>
        <expand macro="db_source" />
        <expand macro="db_source2" />
        <expand macro="logfile" />
    </inputs>
    <outputs>
        <data name="outindex" format="ffindex" label="DBKit Merged Index" />
        <data name="outdata" format="ffdata" label="DBKit Merged Database" />
        <data format="txt" name="logfile" label="DBKit Merged Log">
            <filter>logfile</filter>
        </data>
    </outputs>
    <tests>
        <test>
            <conditional name="db_source">
                <param name="db_source_selector" value="history" />
                <param name="ffindex" value="create/first.ffindex" />
                <param name="ffdata" value="create/first.ffdata" />
            </conditional>
            <conditional name="db_source">
                <param name="db_source_selector" value="history" />
                <param name="ffindex" value="merge/second.ffindex" />
                <param name="ffdata" value="merge/second.ffdata" />
            </conditional>
            <output name="outindex" file="merge/result.ffindex" />
            <output name="outdata" file="merge/result.ffdata" />
        </test>
        <test>
            <conditional name="db_source">
                <param name="db_source_selector" value="indexed" />
                <param name="ffindex" value="first" />
            </conditional>
            <conditional name="db_source">
                <param name="db_source_selector" value="indexed" />
                <param name="ffindex" value="second" />
            </conditional>
            <output name="outindex" file="merge/result.ffindex" />
            <output name="outdata" file="merge/result.ffdata" />
        </test>
    </tests>
    <help><![CDATA[

**What it does**

This database creation tool merges two pairs of ffindex/ffdata entries into a single ffindex/ffdata pair.

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