view data_manager/data_manager_selection_background.xml @ 2:e4f07770b340 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_selection_background commit f3390425582c26c4018eb13eb0f8f2a85189ce08"
author iuc
date Tue, 24 Aug 2021 17:58:31 +0000
parents bb5794942b5e
children 10ac95ec81d9
line wrap: on
line source

<?xml version="1.0"?>
<tool id="data_manager_selection_background" name="Add background sequences" tool_type="manage_data" version="1.0.2">
    <description>for selection analysis</description>
    <command detect_errors="exit_code">
    <![CDATA[
        python '$__tool_directory__/data_manager_selection_background.py' --out '$selection_background_json'
        --dbkey '${dbkey}'
        --label '${label}'
        #if $data_source.source_selector == 'history':
            --dataset '$data_source.dataset'
        #else:
            --uri '$data_source.uri'
        #end if
    ]]>
    </command>
    <inputs>
        <param argument="--dbkey" type="text" label="ID for this entry" help="Enter a unique identifier, or leave blank for a randomly generated UUID" />
        <param argument="--label" type="text" label="Label for this entry" help="This will be displayed in the list of available backgrounds" />
        <conditional name="data_source">
            <param name="source_selector" type="select" label="Source for the data">
                <option value="uri">URL download</option>
                <option value="history">Use a history dataset</option>
            </param>
            <when value="uri">
                <param argument="--uri" type="text" label="URI for the sequences" />
            </when>
            <when value="history">
                <param argument="--dataset" type="data" format="fasta" />
            </when>
        </conditional>
    </inputs>
    <outputs>
        <data format="data_manager_json" name="selection_background_json" />
    </outputs>
    <tests>
        <test>
            <param name="dbkey" value="CoV2-ORF6" />
            <param name="label" value="SARS-CoV-2: ORF6" />
            <param name="source_selector" value="history" />
            <param name="dataset" value="selection-in1.fa" />
            <output name="selection_background_json" file="selection-out1.json" />
        </test>
    </tests>
    <help>
    </help>
</tool>