mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
36 lines
1.2 KiB
XML
36 lines
1.2 KiB
XML
<tool id="output_format_collection" name="output_format_collection" version="1.0.0">
|
|
<command>
|
|
echo "test" > 1;
|
|
echo "test" > 2;
|
|
</command>
|
|
<inputs>
|
|
<param name="input_collection" type="data_collection" format="data" />
|
|
</inputs>
|
|
<outputs>
|
|
<!-- Access by element name (for paired data) -->
|
|
<data from_work_dir="1" name="format_source_1_output" format_source="input_collection['forward']" />
|
|
<!-- Access by element index (for any collection) -->
|
|
<data from_work_dir="2" name="format_source_2_output" format_source="input_collection[0]" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="input_collection">
|
|
<collection type="paired">
|
|
<element name="forward" value="simple_line.txt" />
|
|
<element name="reverse" value="simple_line_alternative.txt" />
|
|
</collection>
|
|
</param>
|
|
<output name="format_source_1_output" ftype="txt">
|
|
<assert_contents>
|
|
<has_line line="test" />
|
|
</assert_contents>
|
|
</output>
|
|
<output name="format_source_2_output" ftype="txt">
|
|
<assert_contents>
|
|
<has_line line="test" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|