Mercurial > repos > jpayne > tableops
comparison table-sort.xml @ 0:402b58f45844 draft default tip
planemo upload commit 9cc4dc1db55299bf92ec6bd359161ece4592bd16-dirty
| author | jpayne |
|---|---|
| date | Mon, 08 Dec 2025 15:03:06 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:402b58f45844 |
|---|---|
| 1 <tool id="table-sort" name="Table Sort: Sort tabular dataset" version="0.1.0"> | |
| 2 <description>on specified header or headers</description> | |
| 3 <requirements> | |
| 4 <container type="docker">cfsanbiostatistics/tableops:latest</container> | |
| 5 </requirements> | |
| 6 <command detect_errors="exit_code"><![CDATA[ | |
| 7 cat $table | python $__tool_directory__/table-sort.py $headers > $sorted | |
| 8 ]]></command> | |
| 9 <inputs> | |
| 10 <param name="table" format="tsv" label="Table in TSV format to sort." type="data" /> | |
| 11 <param name="headers" type="text" label="Space-delimited list of headers on which to sort." /> | |
| 12 </inputs> | |
| 13 <outputs> | |
| 14 <data name="sorted" format="tsv,tabular" label="Sorted table" /> | |
| 15 </outputs> | |
| 16 <tests> | |
| 17 <test> | |
| 18 <param name="table" value="combined.tsv" ftype="tsv" /> | |
| 19 <param name="headers" value="flavor" /> | |
| 20 <output name="sorted" value="sorted.tsv"/> | |
| 21 </test> | |
| 22 <test> | |
| 23 <param name="table" value="sort_test_multiple.txt" ftype="tsv" /> | |
| 24 <param name="headers" value="A D" /> | |
| 25 <output name="sorted" value="sort_test_multiple_sorted.txt"/> | |
| 26 </test> | |
| 27 </tests> | |
| 28 <help><![CDATA[ | |
| 29 Sort a table, ascending, by one or more rows. | |
| 30 ]]></help> | |
| 31 | |
| 32 <citations> | |
| 33 </citations> | |
| 34 </tool> |
