comparison subtract.xml @ 5:0145969324c4 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/gops/subtract commit cae3e05d02e60f595bb8b6d77a84f030e9bd1689
author devteam
date Thu, 22 Jun 2017 18:53:03 -0400
parents ecb36112b056
children
comparison
equal deleted inserted replaced
4:7a2a604ae9c8 5:0145969324c4
1 <tool id="gops_subtract_1" name="Subtract" version="1.0.0"> 1 <tool id="gops_subtract_1" name="Subtract" 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_subtract.py 7 <code file="operation_filter.py"/>
8 $input1 $input2 $output 8 <command><![CDATA[
9 python '$__tool_directory__/gops_subtract.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
23 </command> 27 $returntype
24 <inputs> 28 ]]></command>
25 <param format="interval,gff" name="input2" type="data" help="Second dataset"> 29 <inputs>
26 <label>Subtract</label> 30 <param name="input2" type="data" format="interval,gff" label="Subtract" help="Second dataset" />
27 </param> 31 <param name="input1" type="data" format="interval,gff" label="from" help="First dataset" />
28 32 <param name="returntype" type="select" label="Return" help="of the first dataset (see figure below)">
29 <param format="interval,gff" name="input1" type="data" help="First dataset"> 33 <option value="">Intervals with no overlap</option>
30 <label>from</label> 34 <option value="-p">Non-overlapping pieces of intervals</option>
31 </param> 35 </param>
32 36 <param name="min" type="integer" value="1" min="1" label="where minimal overlap is" help="(bp)" />
33 <param name="returntype" type="select" label="Return" help="of the first dataset (see figure below)"> 37 </inputs>
34 <option value="">Intervals with no overlap</option> 38 <outputs>
35 <option value="-p">Non-overlapping pieces of intervals</option> 39 <data name="output" format_source="input1" metadata_source="input1"/>
36 </param> 40 </outputs>
37 41 <tests>
38 <param name="min" type="integer" value="1" min="1" help="(bp)"> 42 <test>
39 <label>where minimal overlap is</label> 43 <param name="input1" value="1.bed" />
40 </param> 44 <param name="input2" value="2.bed" />
41 </inputs> 45 <param name="min" value="1" />
42 <outputs> 46 <param name="returntype" value="" />
43 <data format="input" name="output" metadata_source="input1"/> 47 <output name="output" file="gops-subtract.dat" />
44 </outputs> 48 </test>
45 <code file="operation_filter.py"/> 49 <test>
46 <trackster_conf/> 50 <param name="input1" value="1.bed" />
47 <tests> 51 <param name="input2" value="2_mod.bed" ftype="interval"/>
48 <test> 52 <param name="min" value="1" />
49 <param name="input1" value="1.bed" /> 53 <param name="returntype" value="" />
50 <param name="input2" value="2.bed" /> 54 <output name="output" file="gops_subtract_diffCols.dat" />
51 <param name="min" value="1" /> 55 </test>
52 <param name="returntype" value="" /> 56 <test>
53 <output name="output" file="gops-subtract.dat" /> 57 <param name="input1" value="gops_subtract_bigint.bed" />
54 </test> 58 <param name="input2" value="2.bed" />
55 <test> 59 <param name="min" value="1" />
56 <param name="input1" value="1.bed" /> 60 <param name="returntype" value="" />
57 <param name="input2" value="2_mod.bed" ftype="interval"/> 61 <output name="output" file="gops-subtract.dat" />
58 <param name="min" value="1" /> 62 </test>
59 <param name="returntype" value="" /> 63 <test>
60 <output name="output" file="gops_subtract_diffCols.dat" /> 64 <param name="input1" value="1.bed" />
61 </test> 65 <param name="input2" value="2.bed" />
62 <test> 66 <param name="min" value="10" />
63 <param name="input1" value="gops_subtract_bigint.bed" /> 67 <param name="returntype" value="Non-overlapping pieces of intervals" />
64 <param name="input2" value="2.bed" /> 68 <output name="output" file="gops-subtract-p.dat" />
65 <param name="min" value="1" /> 69 </test>
66 <param name="returntype" value="" /> 70 <!-- Subtract two GFF files. -->
67 <output name="output" file="gops-subtract.dat" /> 71 <test>
68 </test> 72 <param name="input1" value="gops_subtract_in1.gff" />
69 <test> 73 <param name="input2" value="gops_subtract_in2.gff" />
70 <param name="input1" value="1.bed" /> 74 <param name="min" value="1" />
71 <param name="input2" value="2.bed" /> 75 <param name="returntype" value="" />
72 <param name="min" value="10" /> 76 <output name="output" file="gops_subtract_out1.gff" />
73 <param name="returntype" value="Non-overlapping pieces of intervals" /> 77 </test>
74 <output name="output" file="gops-subtract-p.dat" /> 78 <!-- Subtract BED file from GFF file. -->
75 </test> 79 <test>
76 <!-- Subtract two GFF files. --> 80 <param name="input1" value="gops_subtract_in1.gff" />
77 <test> 81 <param name="input2" value="gops_subtract_in2.bed" />
78 <param name="input1" value="gops_subtract_in1.gff" /> 82 <param name="min" value="1" />
79 <param name="input2" value="gops_subtract_in2.gff" /> 83 <param name="returntype" value="" />
80 <param name="min" value="1" /> 84 <output name="output" file="gops_subtract_out1.gff" />
81 <param name="returntype" value="" /> 85 </test>
82 <output name="output" file="gops_subtract_out1.gff" /> 86 </tests>
83 </test> 87 <help><![CDATA[
84 <!-- Subtract BED file from GFF file. -->
85 <test>
86 <param name="input1" value="gops_subtract_in1.gff" />
87 <param name="input2" value="gops_subtract_in2.bed" />
88 <param name="min" value="1" />
89 <param name="returntype" value="" />
90 <output name="output" file="gops_subtract_out1.gff" />
91 </test>
92 </tests>
93 <help>
94
95 .. class:: infomark 88 .. class:: infomark
96 89
97 **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. 90 **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.
98 91
99 ----- 92 @SCREENCASTS@
100
101 **Screencasts!**
102
103 See Galaxy Interval Operation Screencasts_ (right click to open this link in another window).
104
105 .. _Screencasts: http://wiki.g2.bx.psu.edu/Learn/Interval%20Operations
106
107 -----
108 93
109 **Syntax** 94 **Syntax**
110 95
111 - **Where overlap is at least** sets the minimum length (in base pairs) of overlap between elements of the two datasets. 96 - **Where overlap is at least** sets the minimum length (in base pairs) of overlap between elements of the two datasets.
112 - **Intervals with no overlap** returns entire intervals from the first dataset that do not overlap the second dataset. The returned intervals are completely unchanged, and this option only filters out intervals that overlap with the second dataset. 97 - **Intervals with no overlap** returns entire intervals from the first dataset that do not overlap the second dataset. The returned intervals are completely unchanged, and this option only filters out intervals that overlap with the second dataset.
121 .. image:: gops_subtractOverlappingIntervals.gif 106 .. image:: gops_subtractOverlappingIntervals.gif
122 107
123 Non-overlapping pieces of intervals: 108 Non-overlapping pieces of intervals:
124 109
125 .. image:: gops_subtractOverlappingPieces.gif 110 .. image:: gops_subtractOverlappingPieces.gif
126 111 ]]></help>
127 </help>
128 </tool> 112 </tool>