annotate parsedb.xml @ 0:183edf446dcf draft default tip

Uploaded
author davidvanzessen
date Mon, 17 Jul 2017 07:44:27 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
1 <tool id="change_o_parsedb_galaxy" name="ParseDB" version="1.0">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
2 <description>Change-O</description>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
3 <command interpreter="bash">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
4 #if $action.action_select=="fasta"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
5 parsedb.sh fasta $input $out_file
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
6 #elif $action.action_select=="clip"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
7 parsedb.sh clip $input $out_file
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
8 #elif $action.action_select=="split"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
9 parsedb.sh split $input $out_file $action.column '$input.name'
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
10 #elif $action.action_select=="add"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
11 parsedb.sh add $input $out_file $action.column $action.value
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
12 #elif $action.action_select=="delete"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
13 parsedb.sh delete $input $out_file $action.column $action.value $action.regex
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
14 #elif $action.action_select=="drop"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
15 parsedb.sh drop $input $out_file $action.column
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
16 #elif $action.action_select=="index"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
17 parsedb.sh index $input $out_file $action.column
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
18 #elif $action.action_select=="rename"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
19 parsedb.sh rename $input $out_file $action.column $action.newname
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
20 #elif $action.action_select=="select"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
21 parsedb.sh select $input $out_file $action.column $action.value $action.regex
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
22 #elif $action.action_select=="sort"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
23 parsedb.sh sort $input $out_file $action.column $action.num $action.desc
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
24 #elif $action.action_select=="update"
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
25 parsedb.sh update $input $out_file $action.column $action.value $action.update $action.regex
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
26 #end if
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
27 </command>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
28 <inputs>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
29 <param name="input" type="data" format="tabular" label="Change-o DB file" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
30 <conditional name="action">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
31 <param name="action_select" type="select" label="Action">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
32 <option value="fasta">Create a fasta file from database records</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
33 <option value="clip">Create a clip-fasta file from database records</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
34 <option value="split">Split database files by field values</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
35 <option value="add">Add field and value pairs</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
36 <option value="delete">Delete specific records</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
37 <option value="drop">Delete entire fields</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
38 <option value="index">Add a numeric index field</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
39 <option value="rename">Renames fields</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
40 <option value="select">Select specific records</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
41 <option value="sort">Sort records by field values</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
42 <option value="update">Update field and value pairs</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
43 </param>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
44 <when value="fasta">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
45
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
46 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
47 <when value="clip">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
48
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
49 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
50 <when value="split">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
51 <param name="column" label="Select the column to split on" type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
52 </when>l
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
53 <when value="add">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
54 <param name="column" type="text" size="20" label="The new column name." />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
55 <param name="value" type="text" size="20" label="The value that will be put in the new column" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
56 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
57 <when value="delete">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
58 <param name="column" label="Select the column to search on." type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
59 <param name="value" type="text" size="20" label="The value that will be used" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
60 <param name="regex" type="select" label="Regex" help="Treat values as regular expressions and allow partial string matches.">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
61 <option value="text" selected="true">False</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
62 <option value="regex">True</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
63 </param>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
64 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
65 <when value="drop">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
66 <param name="column" label="Select the column to remove" type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
67 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
68 <when value="index">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
69 <param name="column" type="text" size="20" value="INDEX" label="The index column name" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
70 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
71 <when value="rename">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
72 <param name="column" label="Select the column to delete on" type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
73 <param name="newname" type="text" size="20" value="newname" label="The new column name" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
74 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
75 <when value="select">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
76 <param name="column" label="Select the column to search on" type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
77 <param name="value" type="text" size="20" label="The value that will be used" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
78 <param name="regex" type="select" label="Regex" help="Treat values as regular expressions and allow partial string matches">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
79 <option value="text" selected="true">False</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
80 <option value="regex">True</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
81 </param>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
82 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
83 <when value="sort">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
84 <param name="column" label="Select the column to sort on" type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
85 <param name="num" type="select" label="Numerical" help="Define the sort column as numeric rather than textual.">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
86 <option value="false" selected="true">False</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
87 <option value="true">True</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
88 </param>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
89 <param name="desc" type="select" label="Descending" help="Sort records in descending">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
90 <option value="false" selected="true">False</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
91 <option value="true">True</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
92 </param>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
93 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
94 <when value="update">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
95 <param name="column" label="Select the column to search on" type="data_column" data_ref="input" numerical="False" use_header_names="True" force_select="True" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
96 <param name="value" type="text" size="20" label="The value that will be replaced" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
97 <param name="update" type="text" size="20" label="The value that will replace the original" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
98 <param name="regex" type="select" label="Regex" help="Treat values as regular expressions and allow partial string matches">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
99 <option value="text" selected="true">False</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
100 <option value="regex">True</option>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
101 </param>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
102 </when>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
103 </conditional>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
104 </inputs>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
105 <outputs>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
106 <data format="tabular" name="out_file" label = "Change-o DB ${input.name}">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
107 <filter>action['action_select'] != "split"</filter>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
108 </data>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
109 <data format="txt" name="split">
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
110 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.tab" ext="tabular" directory="split" visible="true" />
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
111 <filter>action['action_select'] == "split"</filter>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
112 </data>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
113 </outputs>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
114 <citations>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
115 <citation type="doi">10.1093/bioinformatics/btv359</citation>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
116 </citations>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
117 <help>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
118
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
119 </help>
183edf446dcf Uploaded
davidvanzessen
parents:
diff changeset
120 </tool>