view bed_macros.xml @ 0:c785cec34cdc draft

Uploaded
author elixir-it
date Fri, 09 Nov 2018 05:27:39 -0500
parents
children
line wrap: on
line source

<macros>
  <macro name="bed_loc">
      <conditional name="bed_source">
            <param name="bed_source_selector" type="select" label="Will you select a bed file from your history or use a built-in bed?" optional="true">
                <option value="cached">Use a built-in bed</option>
                <option value="history">Use a bed from history as reference</option>
            </param>
            <when value="cached">
                <param name="bed_cached" type="select" label="Using reference bed" help="Select bed from the list">
                    <options from_data_table="covacs_bed">
                        <filter type="sort_by" column="2" />
                        <validator type="no_options" message="No bed are available" />
                    </options>
                    <validator type="no_options" message="A built-in bed file is not available"/>
                </param>
            </when>
            <when value="history">
                <param name="bed_history" type="data" format="bed" label="Use the following dataset as reference bed " help="You can upload a bed file to the history and use it" optional="true" />
            </when> 
      </conditional>
  </macro>
</macros>