mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
This allows accessing `$input1.element_identifier` for an `input1` of collection_type `list:pair`.
34 lines
1.0 KiB
XML
34 lines
1.0 KiB
XML
<tool id="identifier_collection" name="identifier_collection" version="0.1">
|
|
<command>
|
|
#for $input in $input1:
|
|
echo '$input.element_identifier' >> 'output1';
|
|
#end for
|
|
</command>
|
|
<inputs>
|
|
<param type="data_collection" collection_type="list,list:paired" name="input1" label="Input 1" />
|
|
</inputs>
|
|
<outputs>
|
|
<data name="output1" format="tabular" from_work_dir="output1" />
|
|
</outputs>
|
|
<tests>
|
|
<!-- test getting identifier for list:pair collections -->
|
|
<test>
|
|
<param name="input1">
|
|
<collection type="list:paired">
|
|
<element name="i1">
|
|
<collection type="paired">
|
|
<element name="forward" value="simple_line.txt" />
|
|
<element name="reverse" value="simple_line_alternative.txt" />
|
|
</collection>
|
|
</element>
|
|
</collection>
|
|
</param>
|
|
<output name="output1">
|
|
<assert_contents>
|
|
<has_line line="i1" />
|
|
</assert_contents>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|