view data_manager/macros.xml @ 1:c22f6c820658 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_pangolin_data commit 544fd499de5324afce8f5f9b38ffdaf282f4dfaa
author iuc
date Wed, 25 Sep 2024 15:42:43 +0000
parents 33158d21324d
children
line wrap: on
line source

<macros>
    <xml name="download_conditional" token_dt_name="db_name" token_database_name="db-name" token_software_name="pangolin">
        <conditional name="@DT_NAME@">
            <param name="enable" type="select" label="For @DATABASE_NAME@">
                <option value="latest" selected="true">Download latest version</option>
                <option value="versions">Download specific versions</option>
                <option value="no">Don't download @DATABASE_NAME@</option>
            </param>
            <when value="latest">
            </when>
            <when value="versions">
                <param name="compatibility_file" 
                        type="data" format="csv"
                        label="Version compatibility file"
                        help="CSV dataset describing compatibility between @SOFTWARE_NAME@ releases and databases; typically, you would want to download fresh from https://raw.githubusercontent.com/cov-lineages/pangolin/master/pangolin/data/data_compatibility.csv" />
                <param name="versions" type="select" multiple="true" label="Select @DATABASE_NAME@ release">
                    <options from_dataset="compatibility_file" separator="," >
                        <column name="name" index="1"/>
                        <column name="value" index="1"/>
                        <column name="min_@SOFTWARE_NAME@_version" index="3"/>
                        <filter type="static_value" column="0" value="@DATABASE_NAME@"/>
                    </options>
                    </param>
            </when>
            <when value="no">
            </when>
        </conditional>
    </xml>
</macros>