Mercurial > repos > jjohnson > split_tabular_columns
annotate split_tabular_columns.xml @ 0:d43312f961cc draft default tip
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
author | jjohnson |
---|---|
date | Wed, 01 Mar 2017 14:01:57 -0500 |
parents | |
children |
rev | line source |
---|---|
0
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
1 <tool id="split_tabular_columns" name="Split Tabular Columns" version="0.0.1"> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
2 <description>into multiple rows to create a normalized table</description> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
3 <requirements> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
4 </requirements> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
5 <stdio> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
6 <exit_code range="1:" /> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
7 </stdio> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
8 <command interpreter="python"><![CDATA[ |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
9 #set $delim = str($split_on).replace("'","\'") |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
10 split_tabular_columns.py |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
11 --input="$input" |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
12 --split_on='${delim}' |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
13 #for $col in str($columns).split(","): |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
14 --column=$col |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
15 #end for |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
16 --output="$output" |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
17 ]]></command> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
18 <inputs> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
19 <param name="input" type="data" format="tabular" label="Tabular Dataset to normalize"/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
20 <param name="columns" type="data_column" data_ref="input" multiple="True" label="Columns to split" |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
21 help=""/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
22 <param name="split_on" type="text" value="," label="List delimiter in column"> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
23 <sanitizer sanitize="False"/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
24 <validator type="regex" message="Anything but TAB or Newline">^[^\t\n\r\f\v]+$</validator> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
25 </param> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
26 </inputs> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
27 <outputs> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
28 <data format="tabular" name="output" label="${input.name} normalized"/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
29 </outputs> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
30 <tests> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
31 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
32 <test> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
33 <param name="input" ftype="tabular" value="input.tabular"/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
34 <param name="columns" value="7,8"/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
35 <param name="split_on" value="; "/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
36 <output name="output" file="output.tabular"/> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
37 </test> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
38 </tests> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
39 <help><![CDATA[ |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
40 ===================== |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
41 Split Tabular Columns |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
42 ===================== |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
43 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
44 **Inputs** |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
45 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
46 Tabular dataset containing one or more columns with a list. |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
47 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
48 **Outputs** |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
49 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
50 Normalized Tabular dataset containing one or more columns with a list. |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
51 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
52 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
53 **Example** |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
54 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
55 With List delimiter '; ' and split on columns c3 and c4 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
56 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
57 the input line: |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
58 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
59 :: |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
60 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
61 1 1.3 id1; id2 desc1; desc2 AMDLID |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
62 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
63 will be output as 2 lines: |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
64 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
65 :: |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
66 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
67 1 1.3 id1 desc1 AMDLID |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
68 1 1.3 id2 desc2 AMDLID |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
69 |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
70 ]]></help> |
d43312f961cc
planemo upload for repository https://github.com/jj-umn/galaxytools/tree/master/split_tabular_columns commit 1d5750b99b90bb1d2730c816a95849e9b9a7d2f9-dirty
jjohnson
parents:
diff
changeset
|
71 </tool> |