Mercurial > repos > bgruening > column_arrange_by_header
comparison columnArrange.xml @ 0:f18f67056946 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/column_arrange_by_header commit 088e73e958b55dc765778641b8a84080cc289f85-dirty
author | bgruening |
---|---|
date | Fri, 16 Oct 2015 14:31:13 -0400 |
parents | |
children | 6c6d26ff01ff |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f18f67056946 |
---|---|
1 <tool id="bg_column_arrange_by_header" name="Column arrange" version="0.1"> | |
2 <description>by header name</description> | |
3 <requirements> | |
4 <requirement type="package" version="0.14.1">pandas</requirement> | |
5 </requirements> | |
6 <command interpreter="python"> | |
7 <![CDATA[ | |
8 column_arrange.py | |
9 --columns | |
10 #for token in $rep_param_columns: | |
11 "$token.param_column" | |
12 #end for | |
13 --in $param_input | |
14 --out $output | |
15 ]]> | |
16 </command> | |
17 <inputs> | |
18 <param format="tabular" name="param_input" type="data" label="file to rearrange" /> | |
19 <repeat name ="rep_param_columns" min="1" title="Specify the first few columns by name"> | |
20 <param name="param_column" type="text" value="" label="column"> | |
21 <sanitizer> | |
22 <valid initial="string.printable"> | |
23 <remove value="'"/> | |
24 </valid> | |
25 </sanitizer> | |
26 </param> | |
27 </repeat> | |
28 </inputs> | |
29 <outputs> | |
30 <data format="tabular" name="output" /> | |
31 </outputs> | |
32 <tests> | |
33 <test> | |
34 <param name="param_input" value="columnarrange_input1.tab"/> | |
35 <repeat name="rep_param_columns"> | |
36 <param name="param_column" value="fname"/> | |
37 </repeat> | |
38 <repeat name="rep_param_columns"> | |
39 <param name="param_column" value="age"/> | |
40 </repeat> | |
41 <output name="out" file="columnarrange_result1.tab"/> | |
42 </test> | |
43 <test> | |
44 <param name="param_input" value="columnarrange_input2.tab"/> | |
45 <repeat name="rep_param_columns"> | |
46 <param name="param_column" value="first name"/> | |
47 </repeat> | |
48 <repeat name="rep_param_columns"> | |
49 <param name="param_column" value="nationality"/> | |
50 </repeat> | |
51 <output name="out" file="columnarrange_result2.tab"/> | |
52 </test> | |
53 </tests> | |
54 <help> | |
55 **What it does** | |
56 | |
57 With this tool you can specify (by naming the header) which columns need to be leftmost. | |
58 The columns which are not specified will be ordered as before, right of the columns which were specified. | |
59 | |
60 Input file:: | |
61 | |
62 AHeader BHeader CHeader DHeader | |
63 a b c d | |
64 a b c d | |
65 | |
66 Specifying **CHeader** and **BHeader**, as the columns that should be leftmost, generates:: | |
67 | |
68 CHeader BHeader AHeader DHeader | |
69 c b a d | |
70 c b a d | |
71 | |
72 </help> | |
73 <citations> | |
74 <citation type="bibtex"> | |
75 @ARTICLE{bgruening_galaxytools, | |
76 Author = {Björn Grüning, Cameron Smith, Torsten Houwaart, Nicola Soranzo, Eric Rasche}, | |
77 keywords = {bioinformatics, ngs, galaxy, cheminformatics, rna}, | |
78 title = {{Galaxy Tools - A collection of bioinformatics and cheminformatics tools for the Galaxy environment}}, | |
79 url = {https://github.com/bgruening/galaxytools} | |
80 } | |
81 </citation> | |
82 </citations> | |
83 </tool> |