annotate CompareOverlappingAdapt.xml @ 44:5f796c5c579f

Uploaded
author m-zytnicki
date Wed, 18 Sep 2013 08:32:38 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
44
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="CompareOverlappingAdapt" name="compare overlapping">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Provide the queries that overlap with a reference.</description>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
3 <requirements>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
4 <requirement type="set_environment">PYTHONPATH</requirement>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
5 </requirements>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
6 <command interpreter="python">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
7 ../Java/Python/CompareOverlappingAdapt.py -i $formatType.inputFileName1
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
8 #if $formatType.FormatInputFileName1 == 'bed':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
9 -f bed
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
10 #elif $formatType.FormatInputFileName1 == 'gff':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
11 -f gff
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
12 #elif $formatType.FormatInputFileName1 == 'gff2':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
13 -f gff2
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
14 #elif $formatType.FormatInputFileName1 == 'gff3':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
15 -f gff3
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
16 #elif $formatType.FormatInputFileName1 == 'sam':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
17 -f sam
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
18 #elif $formatType.FormatInputFileName1 == 'gtf':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
19 -f gtf
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
20 #end if
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
21 -j $formatType2.inputFileName2
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
22 #if $formatType2.FormatInputFileName2 == 'bed':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
23 -g bed
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
24 #elif $formatType2.FormatInputFileName2 == 'gff':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
25 -g gff
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
26 #elif $formatType2.FormatInputFileName2 == 'gff2':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
27 -g gff2
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
28 #elif $formatType2.FormatInputFileName2 == 'gff3':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
29 -g gff3
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
30 #elif $formatType2.FormatInputFileName2 == 'sam':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
31 -g sam
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
32 #elif $formatType2.FormatInputFileName2 == 'gtf':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
33 -g gtf
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
34 #end if
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
35 -o $outputFileGff
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
36 #if $OptionDistance.Dist == 'Yes':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
37 -d $OptionDistance.distance
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
38 #end if
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
39 #if $OptionCollinearOrAntiSens.OptionCA == 'Collinear':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
40 -c
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
41 #elif $OptionCollinearOrAntiSens.OptionCA == 'AntiSens':
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
42 -a
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
43 #end if
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
44 $InvertMatch
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
45 $NotOverlapping
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
46 </command>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
47
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
48 <inputs>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
49 <conditional name="formatType">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
50 <param name="FormatInputFileName1" type="select" label="Input Query File Format">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
51 <option value="bed">bed</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
52 <option value="gff">gff</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
53 <option value="gff2">gff2</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
54 <option value="gff3">gff3</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
55 <option value="sam">sam</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
56 <option value="gtf">gtf</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
57 </param>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
58 <when value="bed">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
59 <param name="inputFileName1" format="bed" type="data" label="Input File 1"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
60 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
61 <when value="gff">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
62 <param name="inputFileName1" format="gff" type="data" label="Input File 1"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
63 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
64 <when value="gff2">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
65 <param name="inputFileName1" format="gff2" type="data" label="Input File 1"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
66 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
67 <when value="gff3">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
68 <param name="inputFileName1" format="gff3" type="data" label="Input File 1"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
69 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
70 <when value="sam">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
71 <param name="inputFileName1" format="sam" type="data" label="Input File 1"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
72 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
73 <when value="gtf">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
74 <param name="inputFileName1" format="gtf" type="data" label="Input File 1"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
75 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
76 </conditional>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
77
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
78 <conditional name="formatType2">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
79 <param name="FormatInputFileName2" type="select" label="Input Reference File Format">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
80 <option value="bed">bed</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
81 <option value="gff">gff</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
82 <option value="gff2">gff2</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
83 <option value="gff3">gff3</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
84 <option value="sam">sam</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
85 <option value="gtf">gtf</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
86 </param>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
87 <when value="bed">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
88 <param name="inputFileName2" format="bed" type="data" label="Input File 2"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
89 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
90 <when value="gff">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
91 <param name="inputFileName2" format="gff" type="data" label="Input File 2"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
92 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
93 <when value="gff2">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
94 <param name="inputFileName2" format="gff2" type="data" label="Input File 2"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
95 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
96 <when value="gff3">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
97 <param name="inputFileName2" format="gff3" type="data" label="Input File 2"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
98 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
99 <when value="sam">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
100 <param name="inputFileName2" format="sam" type="data" label="Input File 2"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
101 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
102 <when value="gtf">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
103 <param name="inputFileName2" format="gtf" type="data" label="Input File 2"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
104 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
105 </conditional>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
106 <conditional name="OptionDistance">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
107 <param name="Dist" type="select" label="Maximum Distance between two reads">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
108 <option value="Yes">Yes</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
109 <option value="No" selected="true">No</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
110 </param>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
111 <when value="Yes">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
112 <param name="distance" type="integer" value="0"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
113 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
114 <when value="No">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
115 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
116 </conditional>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
117 <conditional name="OptionCollinearOrAntiSens">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
118 <param name="OptionCA" type="select" label="Collinear or anti-sens">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
119 <option value="Collinear">Collinear</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
120 <option value="AntiSens">AntiSens</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
121 <option value="NONE" selected="true">NONE</option>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
122 </param>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
123 <when value="Collinear">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
124 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
125 <when value="AntiSens">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
126 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
127 <when value="NONE">
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
128 </when>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
129 </conditional>
5f796c5c579f 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"/>
5f796c5c579f 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."/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
132 </inputs>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
133
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
134 <outputs>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
135 <data name="outputFileGff" format="gff3"/>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
136 </outputs>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
137
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
138 <help>
5f796c5c579f 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).
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
140
5f796c5c579f 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.
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
142
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
143 Various modifiers are also available:
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
144
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
145 -Invert selection (report those which do not overlap).
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
146
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
147 -Restrict to collinear / anti-sense overlapping data.
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
148
5f796c5c579f 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.
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
150
5f796c5c579f 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.
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
152 </help>
5f796c5c579f Uploaded
m-zytnicki
parents:
diff changeset
153 </tool>