view data_manager/data_manager_cat.xml @ 0:cffd8e2382cf draft

"planemo upload commit 4e5a8d7629d90c41219b48b648dd4ab675b84af0"
author iuc
date Mon, 09 Dec 2019 10:28:15 -0500
parents
children 472dabcb03bf
line wrap: on
line source

<tool id="data_manager_cat" name="CAT DB" version="5.0.3.0" tool_type="manage_data" profile="18.09">
    <description>Install a new CAT database</description>
    <requirements>
        <requirement type="package" version="5.0.3">cat</requirement>
    </requirements>
    <version_command><![CDATA[ CAT --version ]]></version_command>
    <command detect_errors="exit_code"><![CDATA[
mkdir -p '$out_file.extra_files_path' &&
python '${__tool_directory__}/data_manager_cat.py'
 --config_file '$out_file'
 --install_path '$out_file.extra_files_path' 
#if $db.src == 'download'
    --db_url '$db.db_url'
#end if
    ]]></command>
    <inputs>
        <conditional name="db">
            <param name="src" type="select" label="Download or Build DBs">
                <option value="download">download</option>
                <option value="build">build</option>
            </param>
            <when value="download">
                <param name="db_url" type="text" label="DB URL at https://tbb.bio.uu.nl/bastiaan/CAT_prepare/"
                     help="example: https://tbb.bio.uu.nl/bastiaan/CAT_prepare/CAT_prepare_20190719.tar.gz">
                </param>
            </when>
            <when value="build">
            </when>
        </conditional>
    </inputs>
    <outputs>
        <data name="out_file" format="data_manager_json" label="${tool.name}"/>
    </outputs>
    <tests>
        <test>
            <conditional name="db">
                <param name="src" value="download"/>
                <param name="db_url" value="https://github.com/galaxyproject/tools-iuc/blob/ce82f787f1f035debfc86de09a271a9ec8d27e0e/data_managers/data_manager_cat/test-data/CAT_prepare_test.tar.gz?raw=true"/>
            </conditional>
            <output name="out_file">
                <assert_contents>
                    <has_text text="CAT_prepare_test/taxonomy" />
                </assert_contents>
            </output>
        </test>
    </tests>
    <help><![CDATA[
This tool prepares reference data for CAT, the Contig Annotation Tool.  
It can either download prebuilt reference data from https://tbb.bio.uu.nl/bastiaan/CAT_prepare/
or build new reference data using the CAT prepare application.

This requires at least 100GB of RAM, 250GB of disk space, and 24 hours.
    ]]></help>
    <expand macro="citations" />
</tool>