annotate tools/new_operations/get_flanks.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="get_flanks1" name="Get flanks">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>returns flanking region/s for every gene</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">get_flanks.py $input $out_file1 $size $direction $region -o $offset -l ${input.metadata.chromCol},${input.metadata.startCol},${input.metadata.endCol},${input.metadata.strandCol}</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param format="interval" name="input" type="data" label="Select data"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="region" type="select" label="Region">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <option value="whole" selected="true">Whole feature</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <option value="start">Around Start</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="end">Around End</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <param name="direction" type="select" label="Location of the flanking region/s">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <option value="Upstream">Upstream</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <option value="Downstream">Downstream</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <option value="Both">Both</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <param name="offset" size="10" type="integer" value="0" label="Offset" help="Use positive values to offset co-ordinates in the direction of transcription and negative values to offset in the opposite direction."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <param name="size" size="10" type="integer" value="50" label="Length of the flanking region(s)" help="Use non-negative value for length"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <data format="interval" name="out_file1" metadata_source="input"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <param name="input" value="flanks_inp.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param name="offset" value="-500"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="size" value="1000"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <param name="direction" value="Both"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 <param name="region" value="whole"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <output name="out_file1" file="flanks_out1.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <param name="input" value="flanks_inp.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 <param name="offset" value="200"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 <param name="size" value="1000"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 <param name="direction" value="Downstream"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 <param name="region" value="start" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <output name="out_file1" file="flanks_out2.bed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 This tool finds the upstream and/or downstream flanking region(s) of all the selected regions in the input file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 **Note:** Every line should contain at least 3 columns: Chromosome number, Start and Stop co-ordinates. If any of these columns is missing or if start and stop co-ordinates are not numerical, the tool may encounter exceptions and such lines are skipped as invalid. The number of invalid skipped lines is documented in the resulting history item as a "Data issue".
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 **Example 1**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 - For the following query::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 chr22 1000 7000 NM_174568 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 - running get flanks with Region: Around start, Offset: -200, Flank-length: 300 and Location: Upstream will return **(Red: Query positive strand; Blue: Flanks output)**::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 chr22 500 800 NM_174568 0 +
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 .. image:: ./static/operation_icons/flanks_ex1.gif
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 **Example 2**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 - For the following query::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 chr22 1000 7000 NM_028946 0 -
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 - running get flanks with Region: Whole, Offset: 200, Flank-length: 300 and Location: Downstream will return **(Orange: Query negative strand; Magenta: Flanks output)**::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 chr22 500 800 NM_028946 0 -
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 .. image:: ./static/operation_icons/flanks_ex2.gif
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 </tool>