Mercurial > repos > sanbi-uwc > list_elements
view list_elements.xml @ 1:1c908001bfcd draft default tip
planemo upload
| author | sanbi-uwc |
|---|---|
| date | Mon, 11 Jul 2022 15:11:13 +0000 |
| parents | 6947d02e946b |
| children |
line wrap: on
line source
<tool id="list_elements" name="List elements of collection" version="0.2.0+galaxy0" profile="21.05"> <requirements> </requirements> <command detect_errors="exit_code"><![CDATA[ #set $last_element = len(list($coll)) - 1 #for $i, $element in enumerate($coll) echo '${element.name}' >> ${output1} #if $i != $last_element && #end if #end for ]]></command> <inputs> <param name="coll" type="data_collection" collection_type="list:list" label="Dataset collection"/> </inputs> <outputs> <data name="output1" format="txt" label="Collection names ${on_string}" /> </outputs> <tests> <test> <param name="coll"> <collection type="list"> <element name="one" value="one.txt" ftype="txt" /> <element name="two" value="two.txt" ftype="txt" /> </collection> </param> <output name="output1" file="output.txt" /> </test> </tests> <help><![CDATA[ Outputs the names of the elements of a collection (of list type). ]]></help> <citations></citations> </tool>
