view data_manager/gtdbtk_database_installer.xml @ 2:6ab422fba1a3 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_gtdbtk_database_installer commit ad14947c3e13babe90a6878b45608fe56a16150d
author iuc
date Tue, 13 Aug 2024 21:13:43 +0000
parents 2814c058a087
children 10232d2b5062
line wrap: on
line source

<tool id="gtdbtk_database_installer" name="GTDB-Tk Database Installer" tool_type="manage_data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
    <description></description>
    <macros>
        <token name="@TOOL_VERSION@">202</token>
        <token name="@VERSION_SUFFIX@">0</token>
        <token name="@PROFILE@">20.09</token>
    </macros>
    <requirements>
        <requirement type="package" version="3.10.2">python</requirement>
    </requirements>
    <command>
    <![CDATA[
        python '$__tool_directory__/gtdbtk_database_installer.py'
          --database_name '$database_name'
          --release '$release'
          --out_file '$out_file'
          $meta
          $test
    ]]>
    </command>
    <inputs>
	    <param name="database_name" type="text" value="" label="Database name or description" help="This value will be displayed in the GTDB-Tk Database select list"/>
        <param name="meta" type="boolean" truevalue="--meta" falsevalue="" checked="false" label="Only store GTDBTK metadata in a dedicated data table. " />
        <param name="test" type="hidden" value="" checked="false" label="Run a dry test run !" />
        <param name="release" type="select" multiple="false" label="GTDB Release">
            <option value="202">202</option>
            <option value="207">207</option>
            <option value="214">214</option>
            <option value="220">220</option>
        </param>
    </inputs>
    <outputs>
        <data name="out_file" format="data_manager_json"/>
    </outputs>
    <tests>
        <test>
            <!-- TODO -->
            <!-- Not actually installing a huge GTDB-Tk database -->
            <param name="release" value="202"/>
            <param name="database_name" value="GTDB-Tk database release 202"/>
            <param name="test" value="--test"/>
            <output name="out_file">
                <assert_contents>
                    <has_text text="GTDB-Tk database release 202"/>
                    <has_text text="release_test"/>
                </assert_contents>
            </output>
        </test>
        <test>
            <!-- Test meta data download -->
            <param name="release" value="202"/>
            <param name="database_name" value="GTDB-Tk database release 202 metadata"/>
            <param name="meta" value="true"/>
            <param name="test" value="--test"/>
            <output name="out_file">
                <assert_contents>
                    <has_text text="GTDB-Tk database release 202 metadata"/>
                    <has_text text="release_test"/>
                </assert_contents>
            </output>
        </test>
    </tests>
    <help>
This data manager downloads the DB required for GTDB-Tk tools such as 
the `gtdbtk classify_wf`. The meta options allows downloading only the metadata for the 
corresponding DB, which is used by tools like `gtdb_to_taxdump`.
    </help>
    <citations>
        <citation type="doi">doi.org/10.1038/s41587-020-0501-8</citation>
        <citation type="doi">dx.doi.org/10.1038/nbt.4229</citation>
    </citations>
</tool>