annotate column_maker.xml @ 3:be25c075ed54 draft

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