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