comparison table-sort.xml @ 0:f1f2497301d3

planemo upload
author jpayne
date Mon, 08 Jan 2018 11:19:54 -0500
parents
children 77fc9c4a7ef0
comparison
equal deleted inserted replaced
-1:000000000000 0:f1f2497301d3
1 <tool id="table-sort" name="Sort tabular dataset" version="0.1.0">
2 <description>on specified header or headers</description>
3 <requirements>
4 </requirements>
5 <command detect_errors="exit_code"><![CDATA[
6 cat $table | $__tool_directory__/table-sort.py $headers > $sorted
7 ]]></command>
8 <inputs>
9 <param name="table" format="tsv" label="Table in TSV format to sort." type="data" />
10 <param name="headers" type="text" label="Space-delimited list of headers on which to sort." />
11 </inputs>
12 <outputs>
13 <data name="sorted" format="tsv" label="Sorted table" />
14 </outputs>
15 <tests>
16 <test>
17 <param name="table" value="combined.tsv" ftype="tsv" />
18 <param name="headers" value="flavor" />
19 <output name="sorted" value="sorted.tsv"/>
20 </test>
21 <test>
22 <param name="table" value="sort_test_multiple.txt" ftype="tsv" />
23 <param name="headers" value="A D" />
24 <output name="sorted" value="sort_test_multiple_sorted.txt"/>
25 </test>
26 </tests>
27 <help><![CDATA[
28 Sort a table, ascending, by one or more rows.
29 ]]></help>
30
31 <citations>
32 </citations>
33 </tool>