comparison sort_rows.xml @ 26:f22a309187a3 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
author bgruening
date Fri, 16 Aug 2024 10:41:17 +0000
parents 5fef6d08de83
children
comparison
equal deleted inserted replaced
25:cd83b5644eab 26:f22a309187a3
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>
14 <outputs> 18 <outputs>
15 <data name="outfile" format_source="infile" metadata_source="infile"/> 19 <data name="outfile" format_source="infile" metadata_source="infile"/>
16 </outputs> 20 </outputs>
17 <options sanitize="False"/>
18 <tests> 21 <tests>
19 <test> 22 <test>
20 <param name="infile" value="sort_rows1.tabular" ftype="tabular" /> 23 <param name="infile" value="sort_rows1.tabular" ftype="tabular" />
21 <output name="outfile" file="sort_rows_results1.bed"/> 24 <output name="outfile" file="sort_rows_results1.bed"/>
22 </test> 25 </test>
29 32
30 **What it does** 33 **What it does**
31 34
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. 35 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 36
34 @REFERENCES@
35 ]]> 37 ]]>
36 </help> 38 </help>
37 <expand macro="citations" /> 39 <expand macro="citations" />
38 </tool> 40 </tool>