Mercurial > repos > jpayne > table_ops
annotate table-sort.xml @ 6:6ffd502b3cf1
planemo upload
author | jpayne |
---|---|
date | Tue, 30 Jan 2018 12:40:45 -0500 |
parents | b8baf3ffa9d9 |
children | e2d0b5662c08 |
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@6 | 4 <requirement type="package" version="3.4">python</requirement> |
jpayne@0 | 5 </requirements> |
jpayne@0 | 6 <command detect_errors="exit_code"><![CDATA[ |
jpayne@0 | 7 cat $table | $__tool_directory__/table-sort.py $headers > $sorted |
jpayne@0 | 8 ]]></command> |
jpayne@0 | 9 <inputs> |
jpayne@0 | 10 <param name="table" format="tsv" label="Table in TSV format to sort." type="data" /> |
jpayne@0 | 11 <param name="headers" type="text" label="Space-delimited list of headers on which to sort." /> |
jpayne@0 | 12 </inputs> |
jpayne@0 | 13 <outputs> |
jpayne@0 | 14 <data name="sorted" format="tsv" label="Sorted table" /> |
jpayne@0 | 15 </outputs> |
jpayne@0 | 16 <tests> |
jpayne@0 | 17 <test> |
jpayne@0 | 18 <param name="table" value="combined.tsv" ftype="tsv" /> |
jpayne@0 | 19 <param name="headers" value="flavor" /> |
jpayne@0 | 20 <output name="sorted" value="sorted.tsv"/> |
jpayne@0 | 21 </test> |
jpayne@0 | 22 <test> |
jpayne@0 | 23 <param name="table" value="sort_test_multiple.txt" ftype="tsv" /> |
jpayne@0 | 24 <param name="headers" value="A D" /> |
jpayne@0 | 25 <output name="sorted" value="sort_test_multiple_sorted.txt"/> |
jpayne@0 | 26 </test> |
jpayne@0 | 27 </tests> |
jpayne@0 | 28 <help><![CDATA[ |
jpayne@0 | 29 Sort a table, ascending, by one or more rows. |
jpayne@0 | 30 ]]></help> |
jpayne@0 | 31 |
jpayne@0 | 32 <citations> |
jpayne@0 | 33 </citations> |
jpayne@0 | 34 </tool> |