Mercurial > repos > bgruening > text_processing
annotate sort_rows.xml @ 29:4f7cade041cb 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:11:51 +0000 |
| parents | f22a309187a3 |
| children |
| rev | line source |
|---|---|
|
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
24
diff
changeset
|
1 <tool id="tp_sort_rows" name="Sort a row" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
| 4 | 2 <description>according to their columns</description> |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
|
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
24
diff
changeset
|
6 <expand macro="creator"/> |
|
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
24
diff
changeset
|
7 <requirements> |
|
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
24
diff
changeset
|
8 <requirement type="package" version="3.12">python</requirement> |
|
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
24
diff
changeset
|
9 </requirements> |
| 4 | 10 <command> |
| 11 <![CDATA[ | |
|
26
f22a309187a3
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
bgruening
parents:
24
diff
changeset
|
12 python -c 'for line in ( "\t".join(sorted(line.strip().split("\t"))) for line in open("$infile") ): print(line)' > '$outfile' |
| 4 | 13 ]]> |
| 14 </command> | |
| 15 <inputs> | |
| 16 <param format="tabular" name="infile" type="data" label="Tabular file that should be sorted"/> | |
| 17 </inputs> | |
| 18 <outputs> | |
| 6 | 19 <data name="outfile" format_source="infile" metadata_source="infile"/> |
| 4 | 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[ | |
| 0 | 29 .. class:: infomark |
| 30 | |
| 4 | 31 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* |
| 0 | 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 | |
| 4 | 37 ]]> |
| 38 </help> | |
|
14
7725ab6dab67
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents:
6
diff
changeset
|
39 <expand macro="citations" /> |
| 0 | 40 </tool> |
