annotate join.xml @ 0:cb9ed67cb329

Imported from capsule None
author devteam
date Tue, 01 Apr 2014 09:13:30 -0400
parents
children 4ce471410d01
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="gops_join_1" name="Join" version="0.0.1">
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
2 <description>the intervals of two datasets side-by-side</description>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="0.7.1">bx-python</requirement>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="1.0.0">galaxy-ops</requirement>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
7 <command interpreter="python">gops_join.py $input1 $input2 $output -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} -m $min -f $fill</command>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
8 <inputs>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
9 <param format="interval" name="input1" type="data" help="First dataset">
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
10 <label>Join</label>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
11 </param>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
12 <param format="interval" name="input2" type="data" help="Second dataset">
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
13 <label>with</label>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
14 </param>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
15 <param name="min" size="4" type="integer" value="1" help="(bp)">
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
16 <label>with min overlap</label>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
17 </param>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
18 <param name="fill" type="select" label="Return">
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
19 <option value="none">Only records that are joined (INNER JOIN)</option>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
20 <option value="right">All records of first dataset (fill null with ".")</option>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
21 <option value="left">All records of second dataset (fill null with ".")</option>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
22 <option value="both">All records of both datasets (fill nulls with ".")</option>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
23 </param>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
24 </inputs>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
25 <outputs>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
26 <data format="interval" name="output" metadata_source="input1" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
27 </outputs>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
28 <code file="operation_filter.py"/>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
29 <tests>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
30 <test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
31 <param name="input1" value="1.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
32 <param name="input2" value="2.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
33 <param name="min" value="1" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
34 <param name="fill" value="none" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
35 <output name="output" file="gops-join-none.dat" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
36 </test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
37 <test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
38 <param name="input1" value="1.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
39 <param name="input2" value="2.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
40 <param name="min" value="1" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
41 <param name="fill" value="right" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
42 <output name="output" file="gops-join-right.dat" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
43 </test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
44 <test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
45 <param name="input1" value="1.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
46 <param name="input2" value="2.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
47 <param name="min" value="1" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
48 <param name="fill" value="left" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
49 <output name="output" file="gops-join-left.dat" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
50 </test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
51 <test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
52 <param name="input1" value="1.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
53 <param name="input2" value="2.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
54 <param name="min" value="1" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
55 <param name="fill" value="both" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
56 <output name="output" file="gops-join-both.dat" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
57 </test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
58 <test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
59 <param name="input1" value="1.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
60 <param name="input2" value="2.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
61 <param name="min" value="500" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
62 <param name="fill" value="none" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
63 <output name="output" file="gops-join-none-500.dat" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
64 </test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
65 <test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
66 <param name="input1" value="1.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
67 <param name="input2" value="2.bed" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
68 <param name="min" value="100" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
69 <param name="fill" value="both" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
70 <output name="output" file="gops-join-both-100.dat" />
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
71 </test>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
72 </tests>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
73 <help>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
74
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
75 .. class:: infomark
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
76
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
77 **TIP:** If your dataset does not appear in the pulldown menu, it means that it is not in interval format. Use "edit attributes" to set chromosome, start, end, and strand columns.
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
78
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
79 -----
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
80
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
81 **Screencasts!**
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
82
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
83 See Galaxy Interval Operation Screencasts_ (right click to open this link in another window).
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
84
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
85 .. _Screencasts: http://wiki.g2.bx.psu.edu/Learn/Interval%20Operations
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
86
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
87 -----
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
88
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
89 **Syntax**
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
90
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
91 - **Where overlap** specifies the minimum overlap between intervals that allows them to be joined.
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
92 - **Return only records that are joined** returns only the records of the first dataset that join to a record in the second dataset. This is analogous to an INNER JOIN.
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
93 - **Return all records of first dataset (fill null with &quot;.&quot;)** returns all intervals of the first dataset, and any intervals that do not join an interval from the second dataset are filled in with a period(.). This is analogous to a LEFT JOIN.
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
94 - **Return all records of second dataset (fill null with &quot;.&quot;)** returns all intervals of the second dataset, and any intervals that do not join an interval from the first dataset are filled in with a period(.). **Note that this may produce an invalid interval file, since a period(.) is not a valid chrom, start, end or strand.**
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
95 - **Return all records of both datasets (fill nulls with &quot;.&quot;)** returns all records from both datasets, and fills on either the right or left with periods. **Note that this may produce an invalid interval file, since a period(.) is not a valid chrom, start, end or strand.**
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
96
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
97 -----
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
98
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
99 **Examples**
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
100
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
101 .. image:: ${static_path}/operation_icons/gops_joinRecordsList.gif
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
102
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
103 Only records that are joined (inner join):
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
104
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
105 .. image:: ${static_path}/operation_icons/gops_joinInner.gif
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
106
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
107 All records of first dataset:
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
108
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
109 .. image:: ${static_path}/operation_icons/gops_joinLeftOuter.gif
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
110
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
111 All records of second dataset:
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
112
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
113 .. image:: ${static_path}/operation_icons/gops_joinRightOuter.gif
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
114
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
115 All records of both datasets:
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
116
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
117 .. image:: ${static_path}/operation_icons/gops_joinFullOuter.gif
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
118
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
119
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
120 </help>
cb9ed67cb329 Imported from capsule None
devteam
parents:
diff changeset
121 </tool>