annotate column_extract.xml @ 0:e77c9484b2d0 draft default tip

Uploaded
author saskia-hiltemann
date Thu, 22 Oct 2015 09:18:30 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
1 <tool id="column_select" name="Column Select" version="1">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
2
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
3 <description> extract/rearrange columns from a tab-delimited file </description>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
4 <code file="getcolumnnames.py"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
5
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
6 <command interpreter="bash">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
7 column_extract.sh
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
8 $infile
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
9 $outputfile
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
10 $removeheader
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
11 #for $c in $go.columns
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
12 ${c.column}
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
13 #end for
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
14 </command>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
15
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
16 <outputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
17 <data format="tabular" name="outputfile" label="${sample} Column extract on ${on_string}"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
18 </outputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
19
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
20 <inputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
21
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
22 <param name="infile" type="data" label="Select file to extract columns from" help="Must be a tab-separated file with a 1-line header"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
23 <param name="removeheader" type="boolean" truevalue="Y" falsevalue="N" selected="false" label="Remove header?" help="If selected, any lines starting with # and any empty lines will not be output."/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
24
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
25 <conditional name="go">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
26 <param name="ready" type="select" label="Ready to select columns?" help="Set to NO and back to YES after changing input file">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
27 <option value="no" selected="True">no</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
28 <option value="yes">yes</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
29 </param>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
30
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
31 <when value="yes">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
32 <repeat name="columns" title="Column" min="1">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
33 <!-- <param name="col" type="data_column" data_ref="infile" multiple="False" label="Column from file to output" /> -->
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
34 <param name="column" type="select" dynamic_options="get_headers(infile)" multiple="False" label="Select Column" />
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
35 </repeat>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
36 </when>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
37 </conditional>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
38
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
39 <param name="sample" type="text" value="" label="Sample Name" help="Optional. For file naming purposes only"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
40
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
41 </inputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
42
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
43 <help>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
44
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
45
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
46 **What it does**
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
47 Outputs columns of input file in order specified by user. Columns not selected will not be output.
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
48
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
49 </help>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
50 </tool>