view data_managers/data_manager_rgi_build_db/data_manager/rgi_database_builder.xml @ 4:ce852ee2c394 draft

planemo upload for repository https://github.com/arpcard/rgi commit 78185f967f4c08824f0b118214adcecc14495f3e
author card
date Wed, 31 Aug 2022 01:14:48 +0000
parents bfbfc24c5af2
children 84bd24ac33fd
line wrap: on
line source

<?xml version="1.0"?>
<tool id="rgi_database_builder" name="RGI Database Builder" tool_type="manage_data" version="1.2.0">
    <description>Download and build the CARD database for RGI</description>
    <requirements>
	<requirement type="package" version="5.2.1">rgi</requirement>
    </requirements>
    <stdio>
        <exit_code description="Error" level="fatal" range="1:" />
    </stdio>
    <command>
    <![CDATA[
        python3 '$__tool_directory__/rgi_database_builder.py' --out "${out_file}"
        #if $name:
            --name "${name}"
        #end if
        #if $url:
            --url "${url}"
        #end if
    ]]>
    </command>
    <inputs>
        <param name="name" type="text" value="" label="Database name" help="Name for this database, or leave blank for today's date" optional="True"/>
        <param name="url" type="text" value="https://card.mcmaster.ca/latest/data" label="Url" help="Url for the CARD data e.g https://card.mcmaster.ca/lastest/data. Visit https://card.mcmaster.ca/download to see previous CARD releases." optional="True"/>
    </inputs>
    <outputs>
        <data format="data_manager_json" name="out_file" label="${tool.name} (JSON)"/>
    </outputs>
</tool>