annotate table-sort.xml @ 12:15230438f7f5

planemo upload
author jpayne
date Mon, 12 Feb 2018 10:22:47 -0500
parents 3f74684fb2a8
children
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@12 4 <!-- <requirement type="package" version="3.4">python3</requirement> -->
jpayne@0 5 </requirements>
jpayne@0 6 <command detect_errors="exit_code"><![CDATA[
jpayne@12 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>