view macros.xml @ 0:6b0a13deae92 draft

Uploaded
author greg
date Fri, 13 Oct 2023 20:26:32 +0000
parents
children f3485a9e51a3
line wrap: on
line source

<macros>
    <token name="@TOOL_VERSION@">2.2.1</token>
    <token name="@VERSION_SUFFIX@">0</token>
    <token name="@PROFILE@">21.01</token>
    <xml name="requirements">
        <requirements>
            <requirement type="package" version="@TOOL_VERSION@">snp-pipeline</requirement>
            <requirement type="package" version="3.6.8">python</requirement>
        </requirements>
    </xml>
    <xml name="input_type_cond">
        <conditional name="input_type_cond">
            <param name="input_type" type="select" label="Choose the category for the files to be analyzed">
                <option value="single" selected="true">Single files</option>
                <option value="collection">Collection of files</option>
            </param>
            <when value="single">
                <param name="input_fasta" type="data" format="fasta" label="FASTA file"/>
            </when>
            <when value="collection">
                <param name="input_fasta_collection" type="data_collection" format="fasta" collection_type="list" label="Collection of fasta files"/>
            </when>
        </conditional>
    </xml>
    <xml name="reference_cond">
        <conditional name="reference_cond">
            <param name="reference_source" type="select" label="Choose the source for the reference genome">
                <option value="cached" selected="true">locally cached</option>
                <option value="history">from history</option>
            </param>
            <when value="cached">
                <param name="reference" type="select" label="Select reference">
                    <options from_data_table="all_fasta">
                        <filter type="sort_by" column="2"/>
                        <validator type="no_options" message="No assemblies are available for the selected input dataset"/>
                    </options>
                </param>
            </when>
            <when value="history">
                <param name="reference" type="data" format="fasta" label="FASTA Reference from your history"/>
            </when>
        </conditional>
    </xml>
    <xml name="citations">
        <citations>
            <citation type="doi">10.7717/peerj-cs.20</citation>
        </citations>
    </xml>
</macros>