Mercurial > repos > bgruening > text_processing
annotate sort_rows.xml @ 20:fbf99087e067 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c4f50d1ee81c1618344ede1f04a46a28d8068bcc
author | bgruening |
---|---|
date | Thu, 28 Mar 2024 13:20:16 +0000 |
parents | 12615d397df7 |
children |
rev | line source |
---|---|
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
17
diff
changeset
|
1 <tool id="tp_sort_rows" name="Sort a row" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
0 | 2 <description>according to their columns</description> |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
17
diff
changeset
|
6 <expand macro="creator"/> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
17
diff
changeset
|
7 <requirements> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
17
diff
changeset
|
8 <requirement type="package" version="3.12">python</requirement> |
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
17
diff
changeset
|
9 </requirements> |
0 | 10 <command> |
11 <![CDATA[ | |
19
12615d397df7
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents:
17
diff
changeset
|
12 python -c 'for line in ( "\t".join(sorted(line.strip().split("\t"))) for line in open("$infile") ): print(line)' > '$outfile' |
0 | 13 ]]> |
14 </command> | |
15 <inputs> | |
16 <param format="tabular" name="infile" type="data" label="Tabular file that should be sorted"/> | |
17 </inputs> | |
18 <outputs> | |
19 <data name="outfile" format_source="infile" metadata_source="infile"/> | |
20 </outputs> | |
21 <options sanitize="False"/> | |
22 <tests> | |
23 <test> | |
24 <param name="infile" value="sort_rows1.tabular" ftype="tabular" /> | |
25 <output name="outfile" file="sort_rows_results1.bed"/> | |
26 </test> | |
27 </tests> | |
28 <help> | |
29 <![CDATA[ | |
30 .. class:: infomark | |
31 | |
32 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | |
33 | |
34 **What it does** | |
35 | |
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. | |
37 | |
38 ]]> | |
39 </help> | |
6
60edf2f8c28f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
0
diff
changeset
|
40 <expand macro="citations" /> |
0 | 41 </tool> |