comparison sort_rows.xml @ 19:12615d397df7 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
author bgruening
date Thu, 29 Feb 2024 22:15:20 +0000
parents f46f0e4f75c4
children 86755160afbf
comparison
equal deleted inserted replaced
18:d698c222f354 19:12615d397df7
1 <tool id="tp_sort_rows" name="Sort a row" version="@BASE_VERSION@.0+galaxy0"> 1 <tool id="tp_sort_rows" name="Sort a row" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>according to their columns</description> 2 <description>according to their columns</description>
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="creator"/>
7 <requirements>
8 <requirement type="package" version="3.12">python</requirement>
9 </requirements>
6 <command> 10 <command>
7 <![CDATA[ 11 <![CDATA[
8 python -c 'for line in ( "\t".join(sorted(line.strip().split("\t"))) for line in open("$infile") ): print(line)' > $outfile 12 python -c 'for line in ( "\t".join(sorted(line.strip().split("\t"))) for line in open("$infile") ): print(line)' > '$outfile'
9 ]]> 13 ]]>
10 </command> 14 </command>
11 <inputs> 15 <inputs>
12 <param format="tabular" name="infile" type="data" label="Tabular file that should be sorted"/> 16 <param format="tabular" name="infile" type="data" label="Tabular file that should be sorted"/>
13 </inputs> 17 </inputs>
29 33
30 **What it does** 34 **What it does**
31 35
32 That tool sorts each row in a TAB separated file, according to their columns. In other words: It is a sorted reordering of all columns. 36 That tool sorts each row in a TAB separated file, according to their columns. In other words: It is a sorted reordering of all columns.
33 37
34 @REFERENCES@
35 ]]> 38 ]]>
36 </help> 39 </help>
37 <expand macro="citations" /> 40 <expand macro="citations" />
38 </tool> 41 </tool>