annotate SMART/galaxy/mapperAnalyzer.xml @ 18:94ab73e8a190

Uploaded
author m-zytnicki
date Mon, 29 Apr 2013 03:20:15 -0400
parents 440ceca58672
children 0ab839023fe4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
1 <tool id="mapperAnalyzer" name="mapper analyzer">
15
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
2 <description>Read the output of an aligner, print statistics and possibly translate into GFF, BED or GBrowse formats. </description>
18
94ab73e8a190 Uploaded
m-zytnicki
parents: 15
diff changeset
3 <requirements>
94ab73e8a190 Uploaded
m-zytnicki
parents: 15
diff changeset
4 <requirement type="set_environment">PYTHONPATH</requirement>
94ab73e8a190 Uploaded
m-zytnicki
parents: 15
diff changeset
5 </requirements>
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
6 <command interpreter="python">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
7 ../Java/Python/mapperAnalyzer.py -i $formatType.inputFileName1
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
8 #if $formatType.FormatInputFileName1 == 'bed':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
9 -f bed
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
10 #elif $formatType.FormatInputFileName1 == 'gff3':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
11 -f gff3
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
12 #elif $formatType.FormatInputFileName1 == 'sam':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
13 -f sam
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
14 #elif $formatType.FormatInputFileName1 == 'bam':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
15 -f bam
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
16 #elif $formatType.FormatInputFileName1 == 'seqmap':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
17 -f seqmap
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
18 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
19
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
20 -q $formatType2.inputFileName2
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
21 #if $formatType2.FormatInputFileName2 == 'fasta':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
22 -k fasta
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
23 #elif $formatType2.FormatInputFileName2 == 'fastq':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
24 -k fastq
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
25 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
26
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
27
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
28 #if $optionnumber.number == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
29 -n $optionnumber.numberVal
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
30 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
31 #if $optionsize.size == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
32 -s $optionsize.sizeVal
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
33 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
34 #if $optionidentity.identity == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
35 -d $optionidentity.identityVal
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
36 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
37 #if $optionmismatch.mismatch == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
38 -m $optionmismatch.mismatchVal
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
39 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
40 #if $optiongap.gap == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
41 -p $optiongap.gapVal
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
42 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
43 #if $optiontitle.title == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
44 -t $optiontitle.titleVal
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
45 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
46 #if $optionappend.append == 'Yes':
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
47 -a $optionappend.appendfile
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
48 #end if
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
49
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
50 $merge
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
51 $remove
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
52 $remain
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
53 -o $outputFileGFF
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
54 </command>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
55
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
56 <inputs>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
57 <conditional name="formatType">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
58 <param name="FormatInputFileName1" type="select" label="Input File mapping Format">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
59 <option value="bed">bed</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
60 <option value="gff3">gff3</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
61 <option value="sam">sam</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
62 <option value="bam">bam</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
63 <option value="seqmap" selected="true">seqmap</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
64 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
65 <when value="bed">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
66 <param name="inputFileName1" format="bed" type="data" label="Input File"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
67 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
68 <when value="gff3">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
69 <param name="inputFileName1" format="gff3" type="data" label="Input File"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
70 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
71 <when value="sam">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
72 <param name="inputFileName1" format="sam" type="data" label="Input File"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
73 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
74 <when value="bam">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
75 <param name="inputFileName1" format="bam" type="data" label="Input File"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
76 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
77 <when value="seqmap">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
78 <param name="inputFileName1" format="seqmap" type="data" label="Input File"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
79 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
80 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
81
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
82 <conditional name="formatType2">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
83 <param name="FormatInputFileName2" type="select" label="Reference sequence File Format">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
84 <option value="fasta" selected="true">fasta</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
85 <option value="fastq">fastq</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
86 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
87 <when value="fasta">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
88 <param name="inputFileName2" format="fasta" type="data" label="Reference sequence File Format"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
89 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
90 <when value="fastq">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
91 <param name="inputFileName2" format="fastq" type="data" label="Reference sequence File Format"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
92 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
93 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
94
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
95 <conditional name="optionnumber">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
96 <param name="number" type="select" label="max. number of occurrences of a sequence">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
97 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
98 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
99 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
100 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
101 <param name="numberVal" type="integer" value="0"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
102 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
103 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
104 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
105 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
106
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
107 <conditional name="optionsize">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
108 <param name="size" type="select" label="minimum pourcentage of size ">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
109 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
110 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
111 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
112 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
113 <param name="sizeVal" type="integer" value="0"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
114 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
115 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
116 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
117 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
118
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
119 <conditional name="optionidentity">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
120 <param name="identity" type="select" label="minimum pourcentage of identity ">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
121 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
122 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
123 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
124 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
125 <param name="identityVal" type="integer" value="0"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
126 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
127 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
128 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
129 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
130
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
131 <conditional name="optionmismatch">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
132 <param name="mismatch" type="select" label="maximum number of mismatches">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
133 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
134 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
135 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
136 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
137 <param name="mismatchVal" type="integer" value="0"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
138 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
139 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
140 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
141 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
142
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
143 <conditional name="optiongap">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
144 <param name="gap" type="select" label="maximum number of gaps">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
145 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
146 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
147 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
148 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
149 <param name="gapVal" type="integer" value="0"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
150 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
151 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
152 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
153 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
154
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
155 <conditional name="optiontitle">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
156 <param name="title" type="select" label="title of the plots ">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
157 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
158 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
159 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
160 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
161 <param name="titleVal" type="text" value="title of the UCSC track" />
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
162 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
163 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
164 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
165 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
166
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
167 <conditional name="optionappend">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
168 <param name="append" type="select" label="append to GFF3 file">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
169 <option value="Yes">Yes</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
170 <option value="No" selected="true">No</option>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
171 </param>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
172 <when value="Yes">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
173 <param name="appendfile" type="data" format="gff3" label="append a file"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
174 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
175 <when value="No">
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
176 </when>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
177 </conditional>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
178
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
179 <param name="merge" type="boolean" truevalue="-e" falsevalue="" checked="false" label="merge exons when introns are short "/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
180 <param name="remove" type="boolean" truevalue="-x" falsevalue="" checked="false" label="remove transcripts when exons are short"/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
181 <param name="remain" type="boolean" truevalue="-r" falsevalue="" checked="false" label="print the unmatched sequences "/>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
182 </inputs>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
183
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
184 <outputs>
18
94ab73e8a190 Uploaded
m-zytnicki
parents: 15
diff changeset
185 <data name="outputFileGFF" format="gff3" label="[mapper analyzer] output file"/>
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
186 </outputs>
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
187
15
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
188 <help>
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
189 Maybe the first program you may use. It reads a set of mapping given by the tool you have used to map your data on the reference genome and translate it to a set of genomic coordinates. You also have the possibility to extract only those that you are interested in (few matches in the genome, few errors in the mapping, etc.). You can also select those reads which map less than a given of times in the genome. Moreover, you can output the data in various different formats, which you can use to visualize them *via* UCSC genome browser or GBrowse. Unmatched reads can be written in an other file, in case you would like to try to map them with another tool (may sometimes work!).
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
190
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
191 You can filter your data according to:
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
192
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
193 - number of errors in the mapping
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
194
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
195 - number of occurrences of the mapping in the genome
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
196
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
197 - size of the read mapped
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
198
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
199 - number of gaps in the mapping
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
200
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
201 The script needs an input file (your mapped reads) together with its format and the read sequences file together with its format (FASTA or FASTQ). If you want, you can also append the results of this script to another GFF3 file. This is useful when the GFF3 file is the result of the mapping using another tool.
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
202
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
203 By default, any gap in the alignment to the reference sequence is treated like an exon. You can decide to remove this feature by merging short introns (actually, gaps).
440ceca58672 Uploaded
m-zytnicki
parents: 6
diff changeset
204 </help>
6
769e306b7933 Change the repository level.
yufei-luo
parents:
diff changeset
205 </tool>