mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 15:45:04 +08:00
Update tool XSD to encourage using fully qualified inputs. Reorganized the existing tests for consistency with other test tools I think. (Rebased with fixes, including XSD fixes from @nsoranzo.)
40 lines
1.6 KiB
XML
40 lines
1.6 KiB
XML
<tool id="collection_paired_conditional_structured_like" name="collection_paired_conditional_structured_like" version="0.1.0">
|
|
<!-- You usually wouldn't want to do this - just write the operation for
|
|
a single dataset and allow the user to map that tool over the whole
|
|
collection. -->
|
|
<command>
|
|
cat '${cond.input1.forward}' > '${list_output.forward}';
|
|
cat '${cond.input1.reverse}' > '${list_output.reverse}'
|
|
</command>
|
|
<inputs>
|
|
<conditional name="cond">
|
|
<param name="cond_param" type="select">
|
|
<option value="paired">Paired</option>
|
|
</param>
|
|
<when value="paired">
|
|
<param name="input1" type="data_collection" collection_type="paired" label="Input" help="Input collection..." format="data" />
|
|
</when>
|
|
</conditional>
|
|
</inputs>
|
|
<outputs>
|
|
<collection name="list_output" structured_like="input1" type="paired" label="Duplicate List" inherit_format="true">
|
|
<!-- inherit_format can be used in conjunction with structured_like
|
|
to perserve format. -->
|
|
</collection>
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="input1">
|
|
<collection type="paired">
|
|
<element name="forward" value="simple_line.txt" ftype="txt" />
|
|
<element name="reverse" value="simple_line_alternative.txt" ftype="txt" />
|
|
</collection>
|
|
</param>
|
|
<output_collection name="list_output" type="paired">
|
|
<element name="forward" file="simple_line.txt" ftype="txt"/>
|
|
<element name="reverse" file="simple_line_alternative.txt" ftype="txt"/>
|
|
</output_collection>
|
|
</test>
|
|
</tests>
|
|
</tool>
|