annotate SMART/galaxy/CompareOverlappingAdapt.xml @ 46:169d364ddd91

Uploaded
author m-zytnicki
date Mon, 30 Sep 2013 03:19:26 -0400
parents
children 90f4b29d884f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
46
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="CompareOverlappingAdapt" name="compare overlapping">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Provide the queries that overlap with a reference.</description>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
3 <requirements>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
4 <requirement type="set_environment">PYTHONPATH</requirement>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
5 </requirements>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
6 <command interpreter="python">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
7 ../Java/Python/CompareOverlappingAdapt.py -i $formatType.inputFileName1
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
8 #if $formatType.FormatInputFileName1 == 'bed':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
9 -f bed
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
10 #elif $formatType.FormatInputFileName1 == 'gff':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
11 -f gff
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
12 #elif $formatType.FormatInputFileName1 == 'gff2':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
13 -f gff2
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
14 #elif $formatType.FormatInputFileName1 == 'gff3':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
15 -f gff3
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
16 #elif $formatType.FormatInputFileName1 == 'sam':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
17 -f sam
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
18 #elif $formatType.FormatInputFileName1 == 'gtf':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
19 -f gtf
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
20 #end if
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
21 -j $formatType2.inputFileName2
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
22 #if $formatType2.FormatInputFileName2 == 'bed':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
23 -g bed
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
24 #elif $formatType2.FormatInputFileName2 == 'gff':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
25 -g gff
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
26 #elif $formatType2.FormatInputFileName2 == 'gff2':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
27 -g gff2
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
28 #elif $formatType2.FormatInputFileName2 == 'gff3':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
29 -g gff3
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
30 #elif $formatType2.FormatInputFileName2 == 'sam':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
31 -g sam
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
32 #elif $formatType2.FormatInputFileName2 == 'gtf':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
33 -g gtf
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
34 #end if
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
35 -o $outputFileGff
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
36 #if $OptionDistance.Dist == 'Yes':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
37 -d $OptionDistance.distance
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
38 #end if
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
39 #if $OptionCollinearOrAntiSens.OptionCA == 'Collinear':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
40 -c
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
41 #elif $OptionCollinearOrAntiSens.OptionCA == 'AntiSens':
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
42 -a
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
43 #end if
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
44 $InvertMatch
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
45 $NotOverlapping
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
46 </command>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
47
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
48 <inputs>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
49 <conditional name="formatType">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
50 <param name="FormatInputFileName1" type="select" label="Input Query File Format">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
51 <option value="bed">bed</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
52 <option value="gff">gff</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
53 <option value="gff2">gff2</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
54 <option value="gff3">gff3</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
55 <option value="sam">sam</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
56 <option value="gtf">gtf</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
57 </param>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
58 <when value="bed">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
59 <param name="inputFileName1" format="bed" type="data" label="Input File 1"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
60 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
61 <when value="gff">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
62 <param name="inputFileName1" format="gff" type="data" label="Input File 1"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
63 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
64 <when value="gff2">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
65 <param name="inputFileName1" format="gff2" type="data" label="Input File 1"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
66 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
67 <when value="gff3">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
68 <param name="inputFileName1" format="gff3" type="data" label="Input File 1"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
69 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
70 <when value="sam">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
71 <param name="inputFileName1" format="sam" type="data" label="Input File 1"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
72 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
73 <when value="gtf">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
74 <param name="inputFileName1" format="gtf" type="data" label="Input File 1"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
75 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
76 </conditional>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
77
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
78 <conditional name="formatType2">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
79 <param name="FormatInputFileName2" type="select" label="Input Reference File Format">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
80 <option value="bed">bed</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
81 <option value="gff">gff</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
82 <option value="gff2">gff2</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
83 <option value="gff3">gff3</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
84 <option value="sam">sam</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
85 <option value="gtf">gtf</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
86 </param>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
87 <when value="bed">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
88 <param name="inputFileName2" format="bed" type="data" label="Input File 2"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
89 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
90 <when value="gff">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
91 <param name="inputFileName2" format="gff" type="data" label="Input File 2"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
92 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
93 <when value="gff2">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
94 <param name="inputFileName2" format="gff2" type="data" label="Input File 2"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
95 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
96 <when value="gff3">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
97 <param name="inputFileName2" format="gff3" type="data" label="Input File 2"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
98 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
99 <when value="sam">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
100 <param name="inputFileName2" format="sam" type="data" label="Input File 2"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
101 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
102 <when value="gtf">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
103 <param name="inputFileName2" format="gtf" type="data" label="Input File 2"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
104 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
105 </conditional>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
106 <conditional name="OptionDistance">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
107 <param name="Dist" type="select" label="Maximum Distance between two reads">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
108 <option value="Yes">Yes</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
109 <option value="No" selected="true">No</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
110 </param>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
111 <when value="Yes">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
112 <param name="distance" type="integer" value="0"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
113 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
114 <when value="No">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
115 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
116 </conditional>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
117 <conditional name="OptionCollinearOrAntiSens">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
118 <param name="OptionCA" type="select" label="Collinear or anti-sens">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
119 <option value="Collinear">Collinear</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
120 <option value="AntiSens">AntiSens</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
121 <option value="NONE" selected="true">NONE</option>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
122 </param>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
123 <when value="Collinear">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
124 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
125 <when value="AntiSens">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
126 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
127 <when value="NONE">
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
128 </when>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
129 </conditional>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
130 <param name="InvertMatch" type="boolean" truevalue="-x" falsevalue="" checked="false" label="Invert match: the output file will contain all query elements which do NOT overlap"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
131 <param name="NotOverlapping" type="boolean" truevalue="-O" falsevalue="" checked="false" label="Also report the query data which do not overlap, with the nbOverlaps tag set to 0."/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
132 </inputs>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
133
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
134 <outputs>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
135 <data name="outputFileGff" format="gff3"/>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
136 </outputs>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
137
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
138 <help>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
139 This script may be the most important one. It basically compares two sets of transcripts and keeps those from the first set which overlap with the second one. The first set is considered as the query set (basically, your data) and the second one is the reference set (RefSeq data, for example).
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
140
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
141 It is vital to understand that it will output the elements of the first file which overlap with the elements of the second one.
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
142
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
143 Various modifiers are also available:
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
144
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
145 -Invert selection (report those which do not overlap).
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
146
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
147 -Restrict to collinear / anti-sense overlapping data.
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
148
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
149 -Keep the query data even if they do not strictly overlap with the reference data, but are located not further away than *n* nucleotide from some reference data.
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
150
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
151 Some option reverses the selection. Put in other words, it performs the comparison as usual, and outputs all those query data which do not overlap.
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
152 </help>
169d364ddd91 Uploaded
m-zytnicki
parents:
diff changeset
153 </tool>