Files
galaxy/test/functional/tools/column_param.xml
T
John Chilton d57088409c Fix data column parameters pointed at multiple data parameters.
Before it would just die with an unhelpful server side exception - now it attempts to build, validate, and use a useful set of columns.
2014-09-26 10:49:43 -04:00

24 lines
657 B
XML

<tool id="column_param" name="Column Param">
<command>
cut -f '$col' '$input1' > 'col_output'
</command>
<inputs>
<param type="data" format="tabular" name="input1" label="Input 1" />
<param name="col" type="data_column" data_ref="input1" label="Column to Use" />
</inputs>
<outputs>
<data name="output1" type="tabular" from_work_dir="col_output" />
</outputs>
<tests>
<test>
<param name="input1" value="2.tabular" />
<param name="col" value="2" />
<output name="output1">
<assert_contents>
<has_line line="68" />
</assert_contents>
</output>
</test>
</tests>
</tool>