annotate chrprefix.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="chr_prefix" name="Add/Remove chr prefix" version="1">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
2
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
3 <description> add or remove chr prefix from a column </description>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
4
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
5 <code file="getcolumnnames.py"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
6
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
7 <command interpreter="bash">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
8 chrprefix.sh
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
9 $infile
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
10 "${go.column}"
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
11 $addremove
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
12 $outputfile
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
13 </command>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
14
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
15 <outputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
16 <data format="tabular" name="outputfile" label="${sample} - chr-prefix on ${on_string}"/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
17 </outputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
18
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
19 <inputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
20
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
21 <param name="infile" type="data" label="Select inputfile" help="must be a tab-delimited file with a 1-line header" />
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
22 <conditional name="go">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
23 <param name="ready" type="select" label="Ready to select column?" help="Set to NO and back to YES after changing input file">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
24 <option value="no" selected="True">no</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
25 <option value="yes">yes</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
26 </param>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
27
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
28 <when value="yes">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
29 <param name="column" type="select" dynamic_options="get_headers(infile)" multiple="False" label="Select Column" />
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
30 </when>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
31 </conditional>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
32
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
33 <param name="addremove" type="select" label="Add or remove the chr prefix?">
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
34 <option value="add">Add</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
35 <option value="remove">Remove</option>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
36 </param>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
37 <param name="sample" type="text" value="" label="Output File Name" help="Optional."/>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
38
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
39 </inputs>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
40
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
41 <help>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
42
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
43 **What it does**
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
44 removes or adds the "chr" prefix in a column of a file. Some tools expect you to indicate chromosomes as "chr1,chr2,chrX", while others expect only 1,2,X as input. This tool allows you to easily switch notations
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
45
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
46 </help>
e77c9484b2d0 Uploaded
saskia-hiltemann
parents:
diff changeset
47 </tool>