annotate get_flanks.xml @ 2:4b14d0e3a837

Added tool images.
author devteam <devteam@galaxyproject.org>
date Mon, 14 Apr 2014 09:18:30 -0400
parents c3b1781c6fd1
children 4cd116158aef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
c3b1781c6fd1 Corrected version string.
devteam <devteam@galaxyproject.org>
parents: 0
diff changeset
1 <tool id="get_flanks1" name="Get flanks" version="1.0.0">
0
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
2 <description>returns flanking region/s for every gene</description>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="0.7.1">bx-python</requirement>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="1.0.0">galaxy-ops</requirement>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
7 <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>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
8 <inputs>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
9 <param format="interval" name="input" type="data" label="Select data"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
10 <param name="region" type="select" label="Region">
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
11 <option value="whole" selected="true">Whole feature</option>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
12 <option value="start">Around Start</option>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
13 <option value="end">Around End</option>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
14 </param>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
15 <param name="direction" type="select" label="Location of the flanking region/s">
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
16 <option value="Upstream">Upstream</option>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
17 <option value="Downstream">Downstream</option>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
18 <option value="Both">Both</option>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
19 </param>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
20 <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."/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
21 <param name="size" size="10" type="integer" value="50" label="Length of the flanking region(s)" help="Use non-negative value for length"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
22
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
23
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
24 </inputs>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
25 <outputs>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
26 <data format="interval" name="out_file1" metadata_source="input"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
27 </outputs>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
28 <tests>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
29 <test>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
30 <param name="input" value="flanks_inp.bed"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
31 <param name="offset" value="-500"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
32 <param name="size" value="1000"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
33 <param name="direction" value="Both"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
34 <param name="region" value="whole"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
35 <output name="out_file1" file="flanks_out1.bed"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
36 </test>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
37 <test>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
38 <param name="input" value="flanks_inp.bed"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
39 <param name="offset" value="200"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
40 <param name="size" value="1000"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
41 <param name="direction" value="Downstream"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
42 <param name="region" value="start" />
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
43 <output name="out_file1" file="flanks_out2.bed"/>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
44 </test>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
45 </tests>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
46 <help>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
47
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
48 This tool finds the upstream and/or downstream flanking region(s) of all the selected regions in the input file.
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
49
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
50 **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".
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
51
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
52 -----
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
53
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
54
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
55 **Example 1**
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
56
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
57 - For the following dataset::
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
58
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
59 chr22 1000 7000 NM_174568 0 +
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
60
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
61 - running get flanks with Region: Around start, Offset: -200, Flank-length: 300 and Location: Upstream will return **(Red: Dataset positive strand; Blue: Flanks output)**::
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
62
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
63 chr22 500 800 NM_174568 0 +
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
64
2
4b14d0e3a837 Added tool images.
devteam <devteam@galaxyproject.org>
parents: 1
diff changeset
65 .. image:: flanks_ex1.gif
0
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
66
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
67 **Example 2**
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
68
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
69 - For the following dataset::
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
70
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
71 chr22 1000 7000 NM_028946 0 -
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
72
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
73 - running get flanks with Region: Whole, Offset: 200, Flank-length: 300 and Location: Downstream will return **(Orange: Dataset negative strand; Magenta: Flanks output)**::
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
74
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
75 chr22 500 800 NM_028946 0 -
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
76
2
4b14d0e3a837 Added tool images.
devteam <devteam@galaxyproject.org>
parents: 1
diff changeset
77 .. image:: flanks_ex2.gif
0
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
78
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
79 </help>
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
80
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
81
a72f0decd7b3 Imported from capsule None
devteam
parents:
diff changeset
82 </tool>