view data_manager/ncbi_taxonomy_fetcher.xml @ 3:bdd8632fa9fb draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_ncbi_taxonomy/ commit 1bcd553f81064957d5786302361675c29ed58a8d"
author iuc
date Mon, 06 Jul 2020 19:32:35 -0400
parents 4af4e175db0d
children d6acd5cd497b
line wrap: on
line source

<?xml version="1.0"?>
<tool id="ncbi_taxonomy_fetcher" name="NCBI" tool_type="manage_data" version="1.0.2">
    <description>taxonomy downloader</description>
    <requirements>
        <requirement type="package" version="3.7">python</requirement>
    </requirements>
    <command detect_errors="exit_code">
    <![CDATA[
        python '$__tool_directory__/data_manager.py' --out '${out_file}'
        #if $taxonomy_url:
            --url '${taxonomy_url}'
        #end if
        #if $database_name:
            --name '${database_name}'
        #end if
    ]]>
    </command>
    <inputs>
        <param name="database_name" type="text" optional="true" label="Name for this database" help="Enter a unique identifier, or leave blank for today's date" />
        <param name="taxonomy_url" type="text" value='ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz' label="Enter URL for taxonomy files" />
    </inputs>
    <outputs>
        <data name="out_file" format="data_manager_json" />
    </outputs>
    <tests>
        <test>
            <param name="database_name" value="tax_name"/>
            <param name="database_id" value="tax_id"/>
            <output name="out_file" value="taxonomy.json"/>
        </test>
    </tests>
    <help>
        Download a taxonomy dump from a provided URL.
        The default URL is the latest dump from NCBI taxonomy.
    </help>
</tool>