Mercurial > repos > devteam > intersect
comparison intersect.xml @ 5:33b3f3688db4 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/intersect commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689
author | devteam |
---|---|
date | Thu, 22 Jun 2017 18:52:23 -0400 |
parents | 5f72be09cfd3 |
children |
comparison
equal
deleted
inserted
replaced
4:8ddabc73af92 | 5:33b3f3688db4 |
---|---|
1 <tool id="gops_intersect_1" name="Intersect" version="1.0.0"> | 1 <tool id="gops_intersect_1" name="Intersect" version="1.0.0"> |
2 <description>the intervals of two datasets</description> | 2 <description>the intervals of two datasets</description> |
3 <requirements> | 3 <macros> |
4 <requirement type="package" version="0.7.1">bx-python</requirement> | 4 <import>macros.xml</import> |
5 <requirement type="package" version="1.0.0">galaxy-ops</requirement> | 5 </macros> |
6 </requirements> | 6 <expand macro="requirements" /> |
7 <command interpreter="python">gops_intersect.py | 7 <code file="operation_filter.py"/> |
8 $input1 $input2 $output | 8 <command><![CDATA[ |
9 python '$__tool_directory__/gops_intersect.py' | |
10 '$input1' | |
11 '$input2' | |
12 '$output' | |
9 | 13 |
10 #if isinstance( $input1.datatype, $__app__.datatypes_registry.get_datatype_by_extension('gff').__class__): | 14 #if $input1.is_of_type('gff') |
11 -1 1,4,5,7 --gff1 | 15 -1 1,4,5,7 --gff1 |
12 #else: | 16 #else: |
13 -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} | 17 -1 ${input1.metadata.chromCol},${input1.metadata.startCol},${input1.metadata.endCol},${input1.metadata.strandCol} |
14 #end if | 18 #end if |
15 | 19 |
16 #if isinstance( $input2.datatype, $__app__.datatypes_registry.get_datatype_by_extension('gff').__class__): | 20 #if $input2.is_of_type('gff') |
17 -2 1,4,5,7 --gff2 | 21 -2 1,4,5,7 --gff2 |
18 #else: | 22 #else: |
19 -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} | 23 -2 ${input2.metadata.chromCol},${input2.metadata.startCol},${input2.metadata.endCol},${input2.metadata.strandCol} |
20 #end if | 24 #end if |
21 | 25 |
22 -m $min $returntype | 26 -m $min $returntype |
23 </command> | 27 ]]></command> |
24 <inputs> | 28 <inputs> |
25 <param name="returntype" type="select" label="Return" help="(see figure below)"> | 29 <param name="returntype" type="select" label="Return" help="(see figure below)"> |
26 <option value="">Overlapping Intervals</option> | 30 <option value="">Overlapping Intervals</option> |
27 <option value="-p">Overlapping pieces of Intervals</option> | 31 <option value="-p">Overlapping pieces of Intervals</option> |
28 </param> | 32 </param> |
29 <param format="interval,gff" name="input1" type="data" help="First dataset"> | 33 <param name="input1" type="data" format="interval,gff" label="of" help="First dataset" /> |
30 <label>of</label> | 34 <param name="input2" type="data" format="interval,gff" label="that intersect" help="Second dataset" /> |
31 </param> | 35 <param name="min" type="integer" value="1" min="1" label="for at least" help="(bp)" /> |
32 <param format="interval,gff" name="input2" type="data" help="Second dataset"> | 36 </inputs> |
33 <label>that intersect</label> | 37 <outputs> |
34 </param> | 38 <data name="output" format_source="input1" metadata_source="input1"/> |
35 <param name="min" type="integer" value="1" min="1" help="(bp)"> | 39 </outputs> |
36 <label>for at least</label> | 40 <tests> |
37 </param> | 41 <test> |
38 </inputs> | 42 <param name="input1" value="1.bed" /> |
39 <outputs> | 43 <param name="input2" value="2.bed" /> |
40 <data format="input" name="output" metadata_source="input1"/> | 44 <param name="min" value="1" /> |
41 </outputs> | 45 <param name="returntype" value="" /> |
42 <code file="operation_filter.py"/> | 46 <output name="output" file="gops_intersect_out.bed" /> |
43 <trackster_conf/> | 47 </test> |
44 <tests> | 48 <test> |
45 <test> | 49 <param name="input1" value="1.bed" /> |
46 <param name="input1" value="1.bed" /> | 50 <param name="input2" value="2_mod.bed" ftype="interval"/> |
47 <param name="input2" value="2.bed" /> | 51 <param name="min" value="1" /> |
48 <param name="min" value="1" /> | 52 <param name="returntype" value="" /> |
49 <param name="returntype" value="" /> | 53 <output name="output" file="gops_intersect_diffCols.bed" /> |
50 <output name="output" file="gops_intersect_out.bed" /> | 54 </test> |
51 </test> | 55 <test> |
52 <test> | 56 <param name="input1" value="1.bed" /> |
53 <param name="input1" value="1.bed" /> | 57 <param name="input2" value="2_mod.bed" ftype="interval"/> |
54 <param name="input2" value="2_mod.bed" ftype="interval"/> | 58 <param name="min" value="1" /> |
55 <param name="min" value="1" /> | 59 <param name="returntype" value="Overlapping pieces of Intervals" /> |
56 <param name="returntype" value="" /> | 60 <output name="output" file="gops_intersect_p_diffCols.bed" /> |
57 <output name="output" file="gops_intersect_diffCols.bed" /> | 61 </test> |
58 </test> | 62 <test> |
59 <test> | 63 <param name="input1" value="1.bed" /> |
60 <param name="input1" value="1.bed" /> | 64 <param name="input2" value="2.bed" /> |
61 <param name="input2" value="2_mod.bed" ftype="interval"/> | 65 <param name="min" value="10" /> |
62 <param name="min" value="1" /> | 66 <param name="returntype" value="Overlapping pieces of Intervals" /> |
63 <param name="returntype" value="Overlapping pieces of Intervals" /> | 67 <output name="output" file="gops_intersect_p_out.bed" /> |
64 <output name="output" file="gops_intersect_p_diffCols.bed" /> | 68 </test> |
65 </test> | 69 <test> |
66 <test> | 70 <param name="input1" value="gops_bigint.interval" ftype="interval" /> |
67 <param name="input1" value="1.bed" /> | 71 <param name="input2" value="gops_bigint2.interval" ftype="interval" /> |
68 <param name="input2" value="2.bed" /> | 72 <param name="min" value="1" /> |
69 <param name="min" value="10" /> | 73 <param name="returntype" value="" /> |
70 <param name="returntype" value="Overlapping pieces of Intervals" /> | 74 <output name="output" file="gops_intersect_bigint_out.interval" /> |
71 <output name="output" file="gops_intersect_p_out.bed" /> | 75 </test> |
72 </test> | 76 <test> |
73 <test> | 77 <param name="input1" value="gops_bigint2.interval" ftype="interval" /> |
74 <param name="input1" value="gops_bigint.interval" ftype="interval" /> | 78 <param name="input2" value="gops_bigint.interval" ftype="interval" /> |
75 <param name="input2" value="gops_bigint2.interval" ftype="interval" /> | 79 <param name="min" value="1" /> |
76 <param name="min" value="1" /> | 80 <param name="returntype" value="" /> |
77 <param name="returntype" value="" /> | 81 <output name="output" file="gops_intersect_bigint_out.interval" /> |
78 <output name="output" file="gops_intersect_bigint_out.interval" /> | 82 </test> |
79 </test> | 83 <test> |
80 <test> | 84 <param name="input1" value="12.bed" ftype="bed" /> |
81 <param name="input1" value="gops_bigint2.interval" ftype="interval" /> | 85 <param name="input2" value="1.bed" ftype="bed" /> |
82 <param name="input2" value="gops_bigint.interval" ftype="interval" /> | 86 <param name="min" value="1" /> |
83 <param name="min" value="1" /> | 87 <param name="returntype" value="" /> |
84 <param name="returntype" value="" /> | 88 <output name="output" file="gops_intersect_no_strand_out.bed" /> |
85 <output name="output" file="gops_intersect_bigint_out.interval" /> | 89 </test> |
86 </test> | 90 <!-- Intersect two GFF files. --> |
87 <test> | 91 <test> |
88 <param name="input1" value="12.bed" ftype="bed" /> | 92 <param name="input1" value="gops_subtract_in1.gff" /> |
89 <param name="input2" value="1.bed" ftype="bed" /> | 93 <param name="input2" value="gops_subtract_in2.gff" /> |
90 <param name="min" value="1" /> | 94 <param name="min" value="1" /> |
91 <param name="returntype" value="" /> | 95 <param name="returntype" value="" /> |
92 <output name="output" file="gops_intersect_no_strand_out.bed" /> | 96 <output name="output" file="gops_intersect_out2.gff" /> |
93 </test> | 97 </test> |
94 <!-- Intersect two GFF files. --> | 98 <!-- Intersect GFF file and bed file. --> |
95 <test> | 99 <test> |
96 <param name="input1" value="gops_subtract_in1.gff" /> | 100 <param name="input1" value="gops_subtract_in1.gff" /> |
97 <param name="input2" value="gops_subtract_in2.gff" /> | 101 <param name="input2" value="gops_subtract_in2.bed" /> |
98 <param name="min" value="1" /> | 102 <param name="min" value="1" /> |
99 <param name="returntype" value="" /> | 103 <param name="returntype" value="" /> |
100 <output name="output" file="gops_intersect_out2.gff" /> | 104 <output name="output" file="gops_intersect_out2.gff" /> |
101 </test> | 105 </test> |
102 <!-- Intersect GFF file and bed file. --> | 106 </tests> |
103 <test> | 107 <help><![CDATA[ |
104 <param name="input1" value="gops_subtract_in1.gff" /> | |
105 <param name="input2" value="gops_subtract_in2.bed" /> | |
106 <param name="min" value="1" /> | |
107 <param name="returntype" value="" /> | |
108 <output name="output" file="gops_intersect_out2.gff" /> | |
109 </test> | |
110 | |
111 </tests> | |
112 <help> | |
113 | |
114 .. class:: infomark | 108 .. class:: infomark |
115 | 109 |
116 **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. | 110 **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. |
117 | 111 |
118 ----- | 112 @SCREENCASTS@ |
119 | |
120 **Screencasts!** | |
121 | |
122 See Galaxy Interval Operation Screencasts_ (right click to open this link in another window). | |
123 | |
124 .. _Screencasts: http://wiki.g2.bx.psu.edu/Learn/Interval%20Operations | |
125 | |
126 ----- | |
127 | 113 |
128 **Syntax** | 114 **Syntax** |
129 | 115 |
130 - **Where overlap is at least** sets the minimum length (in base pairs) of overlap between elements of the two datasets | 116 - **Where overlap is at least** sets the minimum length (in base pairs) of overlap between elements of the two datasets |
131 - **Overlapping Intervals** returns entire intervals from the first dataset that overlap the second dataset. The returned intervals are completely unchanged, and this option only filters out intervals that do not overlap with the second dataset. | 117 - **Overlapping Intervals** returns entire intervals from the first dataset that overlap the second dataset. The returned intervals are completely unchanged, and this option only filters out intervals that do not overlap with the second dataset. |
140 .. image:: gops_intersectOverlappingIntervals.gif | 126 .. image:: gops_intersectOverlappingIntervals.gif |
141 | 127 |
142 Overlapping Pieces of Intervals: | 128 Overlapping Pieces of Intervals: |
143 | 129 |
144 .. image:: gops_intersectOverlappingPieces.gif | 130 .. image:: gops_intersectOverlappingPieces.gif |
145 | 131 ]]></help> |
146 </help> | |
147 </tool> | 132 </tool> |