Mercurial > repos > devteam > column_maker
annotate column_maker.xml @ 5:c6fdc1118036 draft
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 0cb87d8f454f205af021d653d7f7d5a7c14c7718"
author | devteam |
---|---|
date | Wed, 15 Jul 2020 14:38:05 +0000 |
parents | 3335c0d583d8 |
children | 0aeda7a81b46 |
rev | line source |
---|---|
5
c6fdc1118036
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 0cb87d8f454f205af021d653d7f7d5a7c14c7718"
devteam
parents:
4
diff
changeset
|
1 <tool id="Add_a_column1" name="Compute" version="1.3.1"> |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
2 <description>an expression on every row</description> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
3 <requirements> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
4 <requirement type="package" version="2.7.13">python</requirement> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
5 <requirement type="package" version="4.4">sed</requirement> |
4
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
6 <requirement type="package" version="1.14">numpy</requirement> |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
7 </requirements> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
8 <command detect_errors="aggressive"><![CDATA[ |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
9 #if $header_lines_conditional.header_lines_select == "yes": |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
10 (sed -n '1,1p' '$input' | sed "s|$|%${header_lines_conditional.header_new_column_name}|" | tr "%" "\t") > header && |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
11 sed '1,1d' '$input' > data && |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
12 #else: |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
13 touch header && |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
14 ln -s '$input' data && |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
15 #end if |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
16 |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
17 python '$__tool_directory__/column_maker.py' |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
18 data column_maker_output |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
19 "$cond" |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
20 $round |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
21 ${input.metadata.columns} |
4
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
22 "${input.metadata.column_types}" |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
23 $avoid_scientific_notation && |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
24 cat header column_maker_output > '$out_file1' |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
25 ]]></command> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
26 <inputs> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
27 <param name="cond" type="text" value="c3-c2" label="Add expression"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
28 <param format="tabular" name="input" type="data" label="as a new column to" help="Dataset missing? See TIP below"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
29 <param name="round" type="select" label="Round result?"> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
30 <option value="no">NO</option> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
31 <option value="yes">YES</option> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
32 </param> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
33 <conditional name="header_lines_conditional"> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
34 <param name="header_lines_select" type="select" label="Skip a header line" help="# characters are already considered as comments and kept" > |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
35 <option value="no" >no</option> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
36 <option value="yes" >yes</option> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
37 </param> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
38 <when value="no"> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
39 </when> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
40 <when value="yes"> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
41 <param name="header_new_column_name" type="text" value="New Column" label="The new column name" /> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
42 </when> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
43 </conditional> |
4
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
44 <param name="avoid_scientific_notation" type="select" label="Avoid scientific notation" help="If yes, use fully expanded decimal representation when writing new columns (use only if expression produces decimal numbers)."> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
45 <option value="no">no</option> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
46 <option value="yes">yes</option> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
47 </param> |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
48 </inputs> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
49 <outputs> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
50 <data format_source="input" name="out_file1" metadata_source="input"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
51 </outputs> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
52 <tests> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
53 <test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
54 <param name="cond" value="c3-c2"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
55 <param name="input" value="1.bed"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
56 <param name="round" value="no"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
57 <output name="out_file1" file="column_maker_out1.interval"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
58 </test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
59 <test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
60 <param name="cond" value="c4*1"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
61 <param name="input" value="1.interval"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
62 <param name="round" value="no"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
63 <output name="out_file1" file="column_maker_out2.interval"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
64 </test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
65 <test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
66 <param name="cond" value="c4*1"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
67 <param name="input" value="1.header.tsv"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
68 <param name="round" value="no"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
69 <conditional name="header_lines_conditional"> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
70 <param name="header_lines_select" value="yes" /> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
71 <param name="header_new_column_name" value="value1_again" /> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
72 </conditional> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
73 <output name="out_file1" file="column_maker_out2.header.tsv"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
74 </test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
75 <test> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
76 <param name="cond" value="c4*1"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
77 <param name="input" value="1.interval"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
78 <param name="round" value="yes"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
79 <output name="out_file1" file="column_maker_out3.interval"/> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
80 </test> |
4
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
81 <test> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
82 <param name="cond" value="float(.0000000000001)"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
83 <param name="input" value="1.bed"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
84 <param name="round" value="no"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
85 <output name="out_file1"> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
86 <assert_contents> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
87 <has_text text="CCDS10397" /> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
88 <has_text text="1e-13" /> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
89 </assert_contents> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
90 </output> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
91 </test> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
92 <test> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
93 <param name="cond" value="float(.0000000000001)"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
94 <param name="input" value="1.bed"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
95 <param name="round" value="no"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
96 <param name="avoid_scientific_notation" value="yes"/> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
97 <output name="out_file1"> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
98 <assert_contents> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
99 <has_text text="CCDS10397" /> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
100 <has_text text=".0000000000001" /> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
101 <not_has_text text="1e-13" /> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
102 </assert_contents> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
103 </output> |
3335c0d583d8
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 2b17bdfc47ca4d7f1a584216c4bd61a7050df7ea"
devteam
parents:
3
diff
changeset
|
104 </test> |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
105 </tests> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
106 <help> |
0 | 107 |
108 .. class:: infomark | |
109 | |
110 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | |
111 | |
112 ----- | |
113 | |
114 **What it does** | |
115 | |
116 This tool computes an expression for every row of a dataset and appends the result as a new column (field). | |
117 | |
118 - Columns are referenced with **c** and a **number**. For example, **c1** refers to the first column of a tab-delimited file | |
119 | |
120 - **c3-c2** will add a length column to the dataset if **c2** and **c3** are start and end position | |
121 | |
122 ----- | |
123 | |
124 **Example** | |
125 | |
126 If this is your input:: | |
127 | |
128 chr1 151077881 151077918 2 200 - | |
129 chr1 151081985 151082078 3 500 + | |
130 | |
131 computing "c4*c5" will produce:: | |
132 | |
133 chr1 151077881 151077918 2 200 - 400.0 | |
134 chr1 151081985 151082078 3 500 + 1500.0 | |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
135 |
0 | 136 if, at the same time, "Round result?" is set to **YES** results will look like this:: |
137 | |
138 chr1 151077881 151077918 2 200 - 400 | |
139 chr1 151081985 151082078 3 500 + 1500 | |
140 | |
141 You can also use this tool to evaluate expressions. For example, computing "c3>=c2" for Input will result in the following:: | |
142 | |
143 chr1 151077881 151077918 2 200 - True | |
144 chr1 151081985 151082078 3 500 + True | |
145 | |
146 or computing "type(c2)==type('') for Input will return:: | |
147 | |
148 chr1 151077881 151077918 2 200 - False | |
149 chr1 151081985 151082078 3 500 + False | |
150 | |
2
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
151 |
5
c6fdc1118036
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 0cb87d8f454f205af021d653d7f7d5a7c14c7718"
devteam
parents:
4
diff
changeset
|
152 The following built-in functions are available:: |
2
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
153 |
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
154 abs | all | any | bin | bool | chr | ceil | cmp | complex |
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
155 |
5
c6fdc1118036
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit 0cb87d8f454f205af021d653d7f7d5a7c14c7718"
devteam
parents:
4
diff
changeset
|
156 divmod | exp | float | log | log10 | floor | hex | int | len | long |
2
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
157 |
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
158 max | min | oct | ord | pow | range | reversed |
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
159 |
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
160 round | sorted | sqrt | str | sum | type | unichr | unicode | |
292c605c2dc7
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
devteam
parents:
1
diff
changeset
|
161 |
3
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
162 </help> |
35937a6b04fb
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit f6e96ffa420035051ea4632596dfd171074aa66d
devteam
parents:
2
diff
changeset
|
163 <citations /> |
0 | 164 </tool> |