view muse_macros.xml @ 7:110b3018eb2a draft default tip

Uploaded
author elixir-it
date Sat, 21 Sep 2019 13:21:15 -0400
parents fe9b86b5da79
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 index?">
                <option value="cached">Use a built-in genome</option>
                <option value="history">Use a genome from history as reference</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="muse_index">
                        <filter type="sort_by" column="2" />
                        <validator type="no_options" message="No indexes are available" />
                    </options>
                    <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
                </param>
            </when>
            <when value="history">
                <param name="reference" 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>