Mercurial > repos > bgruening > text_processing
annotate sort_rows.xml @ 24:c41d78ae5fee draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4dd118c84ed4d6157303e71438c24446ec4b4f31
| author | bgruening |
|---|---|
| date | Wed, 04 Jun 2025 15:12:29 +0000 |
| parents | 86755160afbf |
| 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 <tests> | |
| 22 <test> | |
| 23 <param name="infile" value="sort_rows1.tabular" ftype="tabular" /> | |
| 24 <output name="outfile" file="sort_rows_results1.bed"/> | |
| 25 </test> | |
| 26 </tests> | |
| 27 <help> | |
| 28 <![CDATA[ | |
| 29 .. class:: infomark | |
| 30 | |
| 31 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | |
| 32 | |
| 33 **What it does** | |
| 34 | |
| 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. | |
| 36 | |
| 37 ]]> | |
| 38 </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
|
39 <expand macro="citations" /> |
| 0 | 40 </tool> |
