comparison SMART/galaxy/mapperAnalyzer.xml @ 36:44d5973c188c

Uploaded
author m-zytnicki
date Tue, 30 Apr 2013 15:02:29 -0400
parents
children
comparison
equal deleted inserted replaced
35:d94018ca4ada 36:44d5973c188c
1 <tool id="mapperAnalyzer" name="mapper analyzer">
2 <description>Read the output of an aligner, print statistics and possibly translate into GFF, BED or GBrowse formats. </description>
3 <command interpreter="python">
4 ../Java/Python/mapperAnalyzer.py -i $formatType.inputFileName1
5 #if $formatType.FormatInputFileName1 == 'bed':
6 -f bed
7 #elif $formatType.FormatInputFileName1 == 'gff3':
8 -f gff3
9 #elif $formatType.FormatInputFileName1 == 'sam':
10 -f sam
11 #elif $formatType.FormatInputFileName1 == 'bam':
12 -f bam
13 #elif $formatType.FormatInputFileName1 == 'seqmap':
14 -f seqmap
15 #end if
16
17 -q $formatType2.inputFileName2
18 #if $formatType2.FormatInputFileName2 == 'fasta':
19 -k fasta
20 #elif $formatType2.FormatInputFileName2 == 'fastq':
21 -k fastq
22 #end if
23
24
25 #if $optionnumber.number == 'Yes':
26 -n $optionnumber.numberVal
27 #end if
28 #if $optionsize.size == 'Yes':
29 -s $optionsize.sizeVal
30 #end if
31 #if $optionidentity.identity == 'Yes':
32 -d $optionidentity.identityVal
33 #end if
34 #if $optionmismatch.mismatch == 'Yes':
35 -m $optionmismatch.mismatchVal
36 #end if
37 #if $optiongap.gap == 'Yes':
38 -p $optiongap.gapVal
39 #end if
40 #if $optiontitle.title == 'Yes':
41 -t $optiontitle.titleVal
42 #end if
43 #if $optionappend.append == 'Yes':
44 -a $optionappend.appendfile
45 #end if
46
47 $merge
48 $remove
49 $remain
50 -o $outputFileGFF
51 </command>
52
53 <inputs>
54 <conditional name="formatType">
55 <param name="FormatInputFileName1" type="select" label="Input File mapping Format">
56 <option value="bed">bed</option>
57 <option value="gff3">gff3</option>
58 <option value="sam">sam</option>
59 <option value="bam">bam</option>
60 <option value="seqmap" selected="true">seqmap</option>
61 </param>
62 <when value="bed">
63 <param name="inputFileName1" format="bed" type="data" label="Input File"/>
64 </when>
65 <when value="gff3">
66 <param name="inputFileName1" format="gff3" type="data" label="Input File"/>
67 </when>
68 <when value="sam">
69 <param name="inputFileName1" format="sam" type="data" label="Input File"/>
70 </when>
71 <when value="bam">
72 <param name="inputFileName1" format="bam" type="data" label="Input File"/>
73 </when>
74 <when value="seqmap">
75 <param name="inputFileName1" format="seqmap" type="data" label="Input File"/>
76 </when>
77 </conditional>
78
79 <conditional name="formatType2">
80 <param name="FormatInputFileName2" type="select" label="Reference sequence File Format">
81 <option value="fasta" selected="true">fasta</option>
82 <option value="fastq">fastq</option>
83 </param>
84 <when value="fasta">
85 <param name="inputFileName2" format="fasta" type="data" label="Reference sequence File Format"/>
86 </when>
87 <when value="fastq">
88 <param name="inputFileName2" format="fastq" type="data" label="Reference sequence File Format"/>
89 </when>
90 </conditional>
91
92 <conditional name="optionnumber">
93 <param name="number" type="select" label="max. number of occurrences of a sequence">
94 <option value="Yes">Yes</option>
95 <option value="No" selected="true">No</option>
96 </param>
97 <when value="Yes">
98 <param name="numberVal" type="integer" value="0"/>
99 </when>
100 <when value="No">
101 </when>
102 </conditional>
103
104 <conditional name="optionsize">
105 <param name="size" type="select" label="minimum pourcentage of size ">
106 <option value="Yes">Yes</option>
107 <option value="No" selected="true">No</option>
108 </param>
109 <when value="Yes">
110 <param name="sizeVal" type="integer" value="0"/>
111 </when>
112 <when value="No">
113 </when>
114 </conditional>
115
116 <conditional name="optionidentity">
117 <param name="identity" type="select" label="minimum pourcentage of identity ">
118 <option value="Yes">Yes</option>
119 <option value="No" selected="true">No</option>
120 </param>
121 <when value="Yes">
122 <param name="identityVal" type="integer" value="0"/>
123 </when>
124 <when value="No">
125 </when>
126 </conditional>
127
128 <conditional name="optionmismatch">
129 <param name="mismatch" type="select" label="maximum number of mismatches">
130 <option value="Yes">Yes</option>
131 <option value="No" selected="true">No</option>
132 </param>
133 <when value="Yes">
134 <param name="mismatchVal" type="integer" value="0"/>
135 </when>
136 <when value="No">
137 </when>
138 </conditional>
139
140 <conditional name="optiongap">
141 <param name="gap" type="select" label="maximum number of gaps">
142 <option value="Yes">Yes</option>
143 <option value="No" selected="true">No</option>
144 </param>
145 <when value="Yes">
146 <param name="gapVal" type="integer" value="0"/>
147 </when>
148 <when value="No">
149 </when>
150 </conditional>
151
152 <conditional name="optiontitle">
153 <param name="title" type="select" label="title of the plots ">
154 <option value="Yes">Yes</option>
155 <option value="No" selected="true">No</option>
156 </param>
157 <when value="Yes">
158 <param name="titleVal" type="text" value="title of the UCSC track" />
159 </when>
160 <when value="No">
161 </when>
162 </conditional>
163
164 <conditional name="optionappend">
165 <param name="append" type="select" label="append to GFF3 file">
166 <option value="Yes">Yes</option>
167 <option value="No" selected="true">No</option>
168 </param>
169 <when value="Yes">
170 <param name="appendfile" type="data" format="gff3" label="append a file"/>
171 </when>
172 <when value="No">
173 </when>
174 </conditional>
175
176 <param name="merge" type="boolean" truevalue="-e" falsevalue="" checked="false" label="merge exons when introns are short "/>
177 <param name="remove" type="boolean" truevalue="-x" falsevalue="" checked="false" label="remove transcripts when exons are short"/>
178 <param name="remain" type="boolean" truevalue="-r" falsevalue="" checked="false" label="print the unmatched sequences "/>
179 </inputs>
180
181 <outputs>
182 <data name="outputFileGFF" format="gff3" label="[mapperAnalyzer] out file"/>
183 </outputs>
184
185 <help>
186 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!).
187
188 You can filter your data according to:
189
190 - number of errors in the mapping
191
192 - number of occurrences of the mapping in the genome
193
194 - size of the read mapped
195
196 - number of gaps in the mapping
197
198 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.
199
200 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).
201 </help>
202 </tool>