Files
galaxy/test/functional/tools/identifier_collection.xml
T
mvdbeek d35a076898 Provide element_identifier attribute in DatsetCollectionWrapper
This allows accessing `$input1.element_identifier` for an `input1` of
collection_type `list:pair`.
2018-11-20 13:43:08 +01:00

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>