view covacs_macros.xml @ 1:cbe203c9bc3a draft default tip

Uploaded
author elixir-it
date Thu, 15 Nov 2018 15:55:26 -0500
parents 03593410f057
children
line wrap: on
line source

<macros>
  <macro name="reference_loc">
      <conditional name="reference_source">
            <param name="reference_source_selector" type="select" label="Will you select a reference genome from your history or use a built-in fasta?" >
                <option value="cached">Use a built-in genome index</option>
                <option value="history">Use a genome from history and build index</option>
            </param>
            <when value="cached">
                <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list">
                    <options from_data_table="covacs_gatk_indexes">
                        <filter type="sort_by" column="2" />
                        <validator type="no_options" message="No genomes are available" />
                    </options>
                    <validator type="no_options" message="A reference genome is not available for the build associated with the selected input file"/>
                </param>
            </when>
            <when value="history">
                <param name="ref_file_h" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="You can upload a FASTA sequence to the history and use it as reference" />
            </when> 
      </conditional>
  </macro>
</macros>