Mercurial > repos > bgruening > text_processing
annotate sort_rows.xml @ 24:5fef6d08de83 draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 5f5d5802a961a77ceb092cbdef90d93e29717029-dirty"
| author | bgruening |
|---|---|
| date | Tue, 22 Jun 2021 16:03:26 +0000 |
| parents | 7725ab6dab67 |
| children | f22a309187a3 |
| rev | line source |
|---|---|
|
24
5fef6d08de83
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 5f5d5802a961a77ceb092cbdef90d93e29717029-dirty"
bgruening
parents:
14
diff
changeset
|
1 <tool id="tp_sort_rows" name="Sort a row" version="@BASE_VERSION@.0+galaxy0"> |
| 4 | 2 <description>according to their columns</description> |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <command> | |
| 7 <![CDATA[ | |
|
24
5fef6d08de83
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 5f5d5802a961a77ceb092cbdef90d93e29717029-dirty"
bgruening
parents:
14
diff
changeset
|
8 python -c 'for line in ( "\t".join(sorted(line.strip().split("\t"))) for line in open("$infile") ): print(line)' > $outfile |
| 4 | 9 ]]> |
| 10 </command> | |
| 11 <inputs> | |
| 12 <param format="tabular" name="infile" type="data" label="Tabular file that should be sorted"/> | |
| 13 </inputs> | |
| 14 <outputs> | |
| 6 | 15 <data name="outfile" format_source="infile" metadata_source="infile"/> |
| 4 | 16 </outputs> |
| 17 <options sanitize="False"/> | |
| 18 <tests> | |
| 19 <test> | |
| 20 <param name="infile" value="sort_rows1.tabular" ftype="tabular" /> | |
| 21 <output name="outfile" file="sort_rows_results1.bed"/> | |
| 22 </test> | |
| 23 </tests> | |
| 24 <help> | |
| 25 <![CDATA[ | |
| 0 | 26 .. class:: infomark |
| 27 | |
| 4 | 28 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* |
| 0 | 29 |
| 30 **What it does** | |
| 31 | |
| 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. | |
| 33 | |
| 4 | 34 @REFERENCES@ |
| 35 ]]> | |
| 36 </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
|
37 <expand macro="citations" /> |
| 0 | 38 </tool> |
