Mercurial > repos > jpayne > tableops
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/table-sort.xml Mon Dec 08 15:03:06 2025 +0000 @@ -0,0 +1,34 @@ +<tool id="table-sort" name="Table Sort: Sort tabular dataset" version="0.1.0"> + <description>on specified header or headers</description> + <requirements> + <container type="docker">cfsanbiostatistics/tableops:latest</container> + </requirements> + <command detect_errors="exit_code"><![CDATA[ + cat $table | python $__tool_directory__/table-sort.py $headers > $sorted + ]]></command> + <inputs> + <param name="table" format="tsv" label="Table in TSV format to sort." type="data" /> + <param name="headers" type="text" label="Space-delimited list of headers on which to sort." /> + </inputs> + <outputs> + <data name="sorted" format="tsv,tabular" label="Sorted table" /> + </outputs> + <tests> + <test> + <param name="table" value="combined.tsv" ftype="tsv" /> + <param name="headers" value="flavor" /> + <output name="sorted" value="sorted.tsv"/> + </test> + <test> + <param name="table" value="sort_test_multiple.txt" ftype="tsv" /> + <param name="headers" value="A D" /> + <output name="sorted" value="sort_test_multiple_sorted.txt"/> + </test> + </tests> + <help><![CDATA[ + Sort a table, ascending, by one or more rows. + ]]></help> + + <citations> + </citations> +</tool> \ No newline at end of file
