view mapseq_db_fetcher.xml @ 1:4cd97cc67061 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/ commit 373300c0508fc239fa6d1c8a0351fa9cbb9c0426
author iuc
date Sat, 23 Mar 2024 07:20:14 +0000
parents dbf2735e8480
children 23511530b8fd
line wrap: on
line source

<?xml version="1.0"?>
<tool id="mapseq_db_fetcher" name="Mapseq DB fetcher" tool_type="manage_data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description>Fetches the DB required for mapseq</description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <expand macro="version" />
    <command detect_errors="exit_code">
    <![CDATA[
        python '$__tool_directory__/data_manager_fetch_mapseq_db.py' 
        --out '${out_file}' 
        --version '${version}' 
        --database-type '${database_type}'
        $test_data_manager
    ]]>
    </command>
    <inputs>
    <!-- <param name="test_data_manager" type="hidden" /> -->
    <param name="test_data_manager" type="boolean" truevalue="--test" falsevalue="" checked="False" label="Download minimal test DB and create mock data table entry." />

    <param name="database_type" type="select" multiple="false" label="Database Type">
        <option value="mgnify_lsu">MGnify LSU (v5.0.7)</option>
        <option value="mgnify_ssu">MGnify SSU (v5.0.7)</option>
        <option value="mgnify_its_itsonedb">MGnify ITS ITSonedb (v5.0.7)</option>
        <option value="mgnify_its_unite">MGnify ITS UNITE (v5.0.7)</option>
    </param>

    <!-- <param name="test_data_manager" type="text" value=""/> -->
    <param argument="--version" type="text" value="5.0.7" help="Check MGnify GitHub (https://github.com/EBI-Metagenomics/pipeline-v5/releases) for the version."/> 
    </inputs>
    <outputs>
        <data format="data_manager_json" name="out_file" />
    </outputs>
    <tests>
    <test expect_num_outputs="1">
        <param name="test_data_manager" value="--test"/>
        <param name="version" value="5.0.7"/>
        <param name="database_type" value="mgnify_lsu"/>
        <output name="out_file">
                <assert_contents>
                    <has_text text="mgnify_lsu"/>
                    <has_text text="5.0.7"/>
                </assert_contents>
        </output>
    </test>
    </tests>
    <help>
    Downloads preformatted DBs form MGnify that can be used for mapseq. 
    The download paths were taken from: https://github.com/EBI-Metagenomics/pipeline-v5/
    </help>
    <expand macro="citations" />
    <expand macro="creator" />
</tool>