annotate table-sort.xml @ 8:fa9bd5c8fae0

planemo upload
author jpayne
date Tue, 30 Jan 2018 15:54:55 -0500
parents e2d0b5662c08
children 3f74684fb2a8
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@7 4 <requirement type="package" version="3.4">python3</requirement>
jpayne@0 5 </requirements>
jpayne@0 6 <command detect_errors="exit_code"><![CDATA[
jpayne@8 7 cat $table | python $__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>