annotate pyCRAC/pyReadAligner.xml @ 0:19b20927172d draft

Uploaded
author swebb
date Tue, 18 Jun 2013 09:11:00 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
19b20927172d Uploaded
swebb
parents:
diff changeset
1 <tool id ="pyReadAligner" name="pyReadAligner">
19b20927172d Uploaded
swebb
parents:
diff changeset
2 <requirements>
19b20927172d Uploaded
swebb
parents:
diff changeset
3 <requirement type="package">pyCRAC</requirement>
19b20927172d Uploaded
swebb
parents:
diff changeset
4 </requirements>
19b20927172d Uploaded
swebb
parents:
diff changeset
5 <command interpreter="python">
19b20927172d Uploaded
swebb
parents:
diff changeset
6 /usr/local/bin/pyReadAligner.py
19b20927172d Uploaded
swebb
parents:
diff changeset
7 -f $ftype.input
19b20927172d Uploaded
swebb
parents:
diff changeset
8 --file_type $ftype.file_type
19b20927172d Uploaded
swebb
parents:
diff changeset
9 #if $geneOpt.alignGene == "gene":
19b20927172d Uploaded
swebb
parents:
diff changeset
10 -g $geneOpt.genes
19b20927172d Uploaded
swebb
parents:
diff changeset
11 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
12 #if $geneOpt.alignGene == "chr":
19b20927172d Uploaded
swebb
parents:
diff changeset
13 --chr $geneOpt.chr
19b20927172d Uploaded
swebb
parents:
diff changeset
14 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
15 #if ($ftype.file_type == "novo" or $ftype.file_type == "sam") and $ftype.disc.discard == "discard":
19b20927172d Uploaded
swebb
parents:
diff changeset
16 --discarded $discarded
19b20927172d Uploaded
swebb
parents:
diff changeset
17 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
18 --gtf=$addGTF.gtf
19b20927172d Uploaded
swebb
parents:
diff changeset
19 --tab=$addTab.tab
19b20927172d Uploaded
swebb
parents:
diff changeset
20 #if ($ftype.file_type == "novo" or $ftype.file_type == "sam") and $ftype.addAlignOpt.alignoptions == "edit":
19b20927172d Uploaded
swebb
parents:
diff changeset
21 --align_quality=$ftype.addAlignOpt.align_quality
19b20927172d Uploaded
swebb
parents:
diff changeset
22 --align_score=$ftype.addAlignOpt.align_score
19b20927172d Uploaded
swebb
parents:
diff changeset
23 --distance=$ftype.addAlignOpt.d
19b20927172d Uploaded
swebb
parents:
diff changeset
24 --length=$ftype.addAlignOpt.length
19b20927172d Uploaded
swebb
parents:
diff changeset
25 #if int($ftype.addAlignOpt.max) > 0:
19b20927172d Uploaded
swebb
parents:
diff changeset
26 --max=$ftype.addAlignOpt.max
19b20927172d Uploaded
swebb
parents:
diff changeset
27 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
28 $ftype.addAlignOpt.unique
19b20927172d Uploaded
swebb
parents:
diff changeset
29 $ftype.addAlignOpt.blocks
19b20927172d Uploaded
swebb
parents:
diff changeset
30 $ftype.addAlignOpt.mutations
19b20927172d Uploaded
swebb
parents:
diff changeset
31 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
32 #if $addOpt.options == "edit":
19b20927172d Uploaded
swebb
parents:
diff changeset
33 --range=$addOpt.range
19b20927172d Uploaded
swebb
parents:
diff changeset
34 --overlap=$addOpt.overlap
19b20927172d Uploaded
swebb
parents:
diff changeset
35 $addOpt.ignore
19b20927172d Uploaded
swebb
parents:
diff changeset
36 -s $addOpt.sequence
19b20927172d Uploaded
swebb
parents:
diff changeset
37 #if int($addOpt.limit) > 0:
19b20927172d Uploaded
swebb
parents:
diff changeset
38 --limit=$addOpt.limit
19b20927172d Uploaded
swebb
parents:
diff changeset
39 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
40 #end if#
19b20927172d Uploaded
swebb
parents:
diff changeset
41 -o $output
19b20927172d Uploaded
swebb
parents:
diff changeset
42 </command>
19b20927172d Uploaded
swebb
parents:
diff changeset
43 <version_command>/usr/local/bin/pyReadAligner.py --version</version_command>
19b20927172d Uploaded
swebb
parents:
diff changeset
44 <inputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
45
19b20927172d Uploaded
swebb
parents:
diff changeset
46
19b20927172d Uploaded
swebb
parents:
diff changeset
47 <conditional name="geneOpt">
19b20927172d Uploaded
swebb
parents:
diff changeset
48 <param name="alignGene" type="select" label="Do you want to align reads to genes or chromosome co-ordinates?">
19b20927172d Uploaded
swebb
parents:
diff changeset
49 <option value="gene" selected="true">Genes</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
50 <option value="chr">Chromosome Co-ordinates</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
51 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
52 <when value="chr">
19b20927172d Uploaded
swebb
parents:
diff changeset
53 <param format="interval" name="chr" type="data" label="Choose a Chromosome Coordinate File" help="Tab delimited text file contai\
19b20927172d Uploaded
swebb
parents:
diff changeset
54 ning an identifier, chromosome name, start position, end position and strand ('-' or '+')"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
55 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
56 <when value="gene">
19b20927172d Uploaded
swebb
parents:
diff changeset
57 <param format="txt" name="genes" type="data" label="Choose a Gene List -g" help="Single column gene ID file"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
58 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
59 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
60 <conditional name="addGTF">
19b20927172d Uploaded
swebb
parents:
diff changeset
61 <param name="gtfFile" type="select" label="Choose GTF File from">
19b20927172d Uploaded
swebb
parents:
diff changeset
62 <option value="default" selected="true">Defaults</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
63 <option value="other">History</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
64 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
65 <when value="default">
19b20927172d Uploaded
swebb
parents:
diff changeset
66 <param name="gtf" type="select" label="GTF File --gtf" help="GTF file containing gene ID co-ordinates">
19b20927172d Uploaded
swebb
parents:
diff changeset
67 <options from_data_table="pycrac_gtf"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
68 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
69 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
70 <when value="other">
19b20927172d Uploaded
swebb
parents:
diff changeset
71 <param format="GTF" name="gtf" type="data" label="GTF File --gtf" help="GTF file containing gene ID co-ordinates"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
72 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
73 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
74 <conditional name="addTab">
19b20927172d Uploaded
swebb
parents:
diff changeset
75 <param name="tabFile" type="select" label="Choose Genomic Reference Sequence from">
19b20927172d Uploaded
swebb
parents:
diff changeset
76 <option value="default" selected="true">Defaults</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
77 <option value="other">History</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
78 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
79 <when value="default">
19b20927172d Uploaded
swebb
parents:
diff changeset
80 <param name="tab" type="select" label="Genomic Reference Sequence --tab" help="Tab file containing genomic reference sequence">
19b20927172d Uploaded
swebb
parents:
diff changeset
81 <options from_data_table="pycrac_tab"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
82 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
83 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
84 <when value="other">
19b20927172d Uploaded
swebb
parents:
diff changeset
85 <param format="tabular" name="tab" type="data" label="Genomic Reference Sequence --tab" help="Tab file containing genomic reference sequence"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
86 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
87 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
88
19b20927172d Uploaded
swebb
parents:
diff changeset
89
19b20927172d Uploaded
swebb
parents:
diff changeset
90 <conditional name="ftype">
19b20927172d Uploaded
swebb
parents:
diff changeset
91 <param name="file_type" type="select" label="Input File Type --file_type">
19b20927172d Uploaded
swebb
parents:
diff changeset
92 <option value="sam">Sam/BAM</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
93 <option value="novo">Novo</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
94 <option value="gtf">GTF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
95 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
96 <when value="sam">
19b20927172d Uploaded
swebb
parents:
diff changeset
97 <param format="sam,bam" name="input" type="data" label="Input File -f" help="Alignment file of type .sam or .bam"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
98 <conditional name="disc">
19b20927172d Uploaded
swebb
parents:
diff changeset
99 <param name="discard" type="select" label="Print discarded reads to a separate file">
19b20927172d Uploaded
swebb
parents:
diff changeset
100 <option value="" selected="true">OFF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
101 <option value="discard">ON</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
102 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
103 <when value="discard">
19b20927172d Uploaded
swebb
parents:
diff changeset
104 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
105 <when value="">
19b20927172d Uploaded
swebb
parents:
diff changeset
106 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
107 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
108 <conditional name="addAlignOpt">
19b20927172d Uploaded
swebb
parents:
diff changeset
109 <param name="alignoptions" type="select" label="Alignment Options">
19b20927172d Uploaded
swebb
parents:
diff changeset
110 <option value="default" selected="true">Default</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
111 <option value="edit">Edit</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
112 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
113 <when value="edit">
19b20927172d Uploaded
swebb
parents:
diff changeset
114 <param name="mutations" type="select" label="Filter reads by mutations --mutations" help="cross-linking sites are often highlighted by deletions and/or substitutions in the reads. You can use this option to filter reads based on whether they have mutations or not.">
19b20927172d Uploaded
swebb
parents:
diff changeset
115 <option value="" selected="true">Off</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
116 <option value="--mutations=delsonly">deletions</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
117 <option value="--mutations=subsonly">substitutions</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
118 <option value="--mutations=TC">T->C mutations</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
119 <option value="--mutations=allmuts">all mutations</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
120 <option value="--mutations=nomuts">no mutations</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
121 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
122 <param format="integer" name="align_quality" type="integer" label="Align Quality --align_quality " value="0" size="5" >
19b20927172d Uploaded
swebb
parents:
diff changeset
123 <validator type="in_range" min="0" message="Please enter a value >= 0"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
124 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
125 <param format="integer" name="align_score" type="integer" label="Align Score --align_score " value="0" size="5" >
19b20927172d Uploaded
swebb
parents:
diff changeset
126 <validator type="in_range" min="0" message="Please enter a value >= 0"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
127 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
128 <param format="integer" name="max" type="integer" label="Mapped reads to read from input file --max" help="Set to 0 to align all reads." value="0" size="10" >
19b20927172d Uploaded
swebb
parents:
diff changeset
129 <validator type="in_range" min="0" max="100000000" message="Please enter a value between 1 and 100000000 or 0 to align all reads"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
130 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
131 <param format="integer" name="d" type="integer" label="Distance --distance " value="1000" size="6" help="Set the maximum number of bp allowed between two non-overlapping paired reads">
19b20927172d Uploaded
swebb
parents:
diff changeset
132 <validator type="in_range" min="1" message="Please enter a value >= 0"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
133 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
134 <param format="integer" name="length" type="integer" label="Set the maximum length of reads --length" value="1000" size="7" help="Set the read length threshold between 15 and 1000">
19b20927172d Uploaded
swebb
parents:
diff changeset
135 <validator type="in_range" min="15" max="1000" message="Please enter a value between 15 and 1000"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
136 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
137 <param name="unique" type="select" label="Remove reads with multiple alignment locations --unique">
19b20927172d Uploaded
swebb
parents:
diff changeset
138 <option value="" selected="true">OFF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
139 <option value="--unique">ON</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
140 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
141 <param name="blocks" type="select" label="Only count reads with same start and end coords once --blocks">
19b20927172d Uploaded
swebb
parents:
diff changeset
142 <option value="" selected="true">OFF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
143 <option value="--blocks">ON</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
144 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
145 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
146 <when value="default">
19b20927172d Uploaded
swebb
parents:
diff changeset
147 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
148 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
149 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
150 <when value="novo">
19b20927172d Uploaded
swebb
parents:
diff changeset
151 <param format="tabular" name="input" type="data" label="Input File -f" help="Alignment file of type .novo" />
19b20927172d Uploaded
swebb
parents:
diff changeset
152 <conditional name="disc">
19b20927172d Uploaded
swebb
parents:
diff changeset
153 <param name="discard" type="select" label="Print discarded reads to a separate file">
19b20927172d Uploaded
swebb
parents:
diff changeset
154 <option value="" selected="true">OFF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
155 <option value="discard">ON</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
156 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
157 <when value="discard">
19b20927172d Uploaded
swebb
parents:
diff changeset
158 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
159 <when value="">
19b20927172d Uploaded
swebb
parents:
diff changeset
160 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
161 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
162 <conditional name="addAlignOpt">
19b20927172d Uploaded
swebb
parents:
diff changeset
163 <param name="alignoptions" type="select" label="Alignment Options">
19b20927172d Uploaded
swebb
parents:
diff changeset
164 <option value="default" selected="true">Default</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
165 <option value="edit">Edit</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
166 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
167 <when value="edit">
19b20927172d Uploaded
swebb
parents:
diff changeset
168 <param name="mutations" type="select" label="Filter reads by mutations --mutations" help="cross-linking sites are often
19b20927172d Uploaded
swebb
parents:
diff changeset
169 highlighted by deletions and/or substitutions in the reads. You can use this option to filter reads based on whether they have mutations or not.">
19b20927172d Uploaded
swebb
parents:
diff changeset
170 <option value="" selected="true">Off</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
171 <option value="--mutations=delsonly">deletions</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
172 <option value="--mutations=subsonly">substitutions</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
173 <option value="--mutations=TC">T->C mutations</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
174 <option value="--mutations=allmuts">all mutations</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
175 <option value="--mutations=nomuts">no mutations</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
176 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
177 <param format="integer" name="align_quality" type="integer" label="Align Quality --align_quality " value="0" size="5" >
19b20927172d Uploaded
swebb
parents:
diff changeset
178 <validator type="in_range" min="0" message="Please enter a value >= 0"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
179 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
180 <param format="integer" name="align_score" type="integer" label="Align Score --align_score " value="0" size="5" >
19b20927172d Uploaded
swebb
parents:
diff changeset
181 <validator type="in_range" min="0" message="Please enter a value >= 0"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
182 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
183 <param format="integer" name="max" type="integer" label="Mapped reads to read from input file --max" help="Set to 0 to align all reads." value="0" size="10" >
19b20927172d Uploaded
swebb
parents:
diff changeset
184 <validator type="in_range" min="0" max="100000000" message="Please enter a value between 1 and 100000000 or 0 to align all reads"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
185 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
186 <param format="integer" name="d" type="integer" label="Distance --distance " value="1000" size="6" help="Set the maximum number of bp allowed between two non-overlapping paired reads">
19b20927172d Uploaded
swebb
parents:
diff changeset
187 <validator type="in_range" min="1" message="Please enter a value >= 0"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
188 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
189 <param format="integer" name="length" type="integer" label="Set the maximum length of reads --length" value="1000" size="7" help="Set the read length threshold between 15 and 1000">
19b20927172d Uploaded
swebb
parents:
diff changeset
190 <validator type="in_range" min="15" max="1000" message="Please enter a value between 15 and 1000"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
191 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
192 <param name="unique" type="select" label="Remove reads with multiple alignment locations --unique">
19b20927172d Uploaded
swebb
parents:
diff changeset
193 <option value="" selected="true">OFF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
194 <option value="--unique">ON</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
195 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
196 <param name="blocks" type="select" label="Only count reads with same start and end coords once --blocks">
19b20927172d Uploaded
swebb
parents:
diff changeset
197 <option value="" selected="true">OFF</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
198 <option value="--blocks">ON</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
199 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
200 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
201 <when value="default">
19b20927172d Uploaded
swebb
parents:
diff changeset
202 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
203 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
204 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
205 <when value="gtf">
19b20927172d Uploaded
swebb
parents:
diff changeset
206 <param format="gtf" name="input" type="data" label="Input File -f" help="File of type .gtf" />
19b20927172d Uploaded
swebb
parents:
diff changeset
207 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
208 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
209
19b20927172d Uploaded
swebb
parents:
diff changeset
210 <conditional name="addOpt">
19b20927172d Uploaded
swebb
parents:
diff changeset
211 <param name="options" type="select" label="Standard Options">
19b20927172d Uploaded
swebb
parents:
diff changeset
212 <option value="default" selected="true">Default</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
213 <option value="edit">Edit</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
214 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
215 <when value="edit">
19b20927172d Uploaded
swebb
parents:
diff changeset
216 <param format="integer" name="range" type="integer" label="Range --range" value="0" size="5" help="Manually set the length of the 5' and 3' UTRs 0>50000">
19b20927172d Uploaded
swebb
parents:
diff changeset
217 <validator type="in_range" min="0" max="50000" message="Please enter a value between 0 and 50000"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
218 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
219 <param name="ignore" type="select" label="Ignore strand information? --ignorestrand">
19b20927172d Uploaded
swebb
parents:
diff changeset
220 <option value="" selected="true">No</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
221 <option value="--ignorestrand">Yes</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
222 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
223 <param format="integer" name="overlap" type="integer" label="Overlap --overlap" value="1" size="5" help="Sets the number of nucleotides a read has to overlap with a gene before it is considered a hit. ">
19b20927172d Uploaded
swebb
parents:
diff changeset
224 <validator type="in_range" min="1" message="Please enter a positive integer"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
225 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
226 <param name="sequence" type="select" label="Align reads to --sequence">
19b20927172d Uploaded
swebb
parents:
diff changeset
227 <option value="genomic" selected="true">Genomic Sequence</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
228 <option value="coding">Coding Sequence</option>
19b20927172d Uploaded
swebb
parents:
diff changeset
229 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
230 <param format="integer" name="limit" type="integer" label="Limit number of reads to count that map to a particular region --limit" value="0" size="15" help="Set to 0 for unlimited reads" >
19b20927172d Uploaded
swebb
parents:
diff changeset
231 <validator type="in_range" min="0" message="Please enter a value greater than 1 or set to 0 for unlimited reads"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
232 </param>
19b20927172d Uploaded
swebb
parents:
diff changeset
233 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
234 <when value="default">
19b20927172d Uploaded
swebb
parents:
diff changeset
235 </when>
19b20927172d Uploaded
swebb
parents:
diff changeset
236 </conditional>
19b20927172d Uploaded
swebb
parents:
diff changeset
237 <param name="label" type="text" format="txt" size="30" value="pyReadAligner" label="Enter output file label -o" />
19b20927172d Uploaded
swebb
parents:
diff changeset
238 </inputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
239 <outputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
240 <data format="fasta" name="output" label="${label.value}.aligned.fasta"/>
19b20927172d Uploaded
swebb
parents:
diff changeset
241 <data format="txt" name="discarded" label="${label.value}_discarded.txt">
19b20927172d Uploaded
swebb
parents:
diff changeset
242 <filter>(ftype['file_type'] == "novo" or ftype['file_type'] == "sam") and ftype['disc']['discard'] == "discard"</filter>
19b20927172d Uploaded
swebb
parents:
diff changeset
243 </data>
19b20927172d Uploaded
swebb
parents:
diff changeset
244 </outputs>
19b20927172d Uploaded
swebb
parents:
diff changeset
245 <help>
19b20927172d Uploaded
swebb
parents:
diff changeset
246
19b20927172d Uploaded
swebb
parents:
diff changeset
247
19b20927172d Uploaded
swebb
parents:
diff changeset
248 .. class:: infomark
19b20927172d Uploaded
swebb
parents:
diff changeset
249
19b20927172d Uploaded
swebb
parents:
diff changeset
250 **pyReadAligner**
19b20927172d Uploaded
swebb
parents:
diff changeset
251
19b20927172d Uploaded
swebb
parents:
diff changeset
252 pyReadAligner is part of the pyCRAC_ package. Generates multiple sequence alignments for reads mapped to individual genes or genomic regions.
19b20927172d Uploaded
swebb
parents:
diff changeset
253 Produces a fasta output file.
19b20927172d Uploaded
swebb
parents:
diff changeset
254
19b20927172d Uploaded
swebb
parents:
diff changeset
255
19b20927172d Uploaded
swebb
parents:
diff changeset
256 .. _pyCRAC: http://sandergranneman.bio.ed.ac.uk/Granneman_Lab/pyCRAC_software.html
19b20927172d Uploaded
swebb
parents:
diff changeset
257
19b20927172d Uploaded
swebb
parents:
diff changeset
258 ------
19b20927172d Uploaded
swebb
parents:
diff changeset
259
19b20927172d Uploaded
swebb
parents:
diff changeset
260 **Parameter list**
19b20927172d Uploaded
swebb
parents:
diff changeset
261
19b20927172d Uploaded
swebb
parents:
diff changeset
262 File input options::
19b20927172d Uploaded
swebb
parents:
diff changeset
263
19b20927172d Uploaded
swebb
parents:
diff changeset
264 -f FILE, --input_file=FILE
19b20927172d Uploaded
swebb
parents:
diff changeset
265 As input files you can use Novoalign native output or
19b20927172d Uploaded
swebb
parents:
diff changeset
266 SAM files as input file. By default it expects data
19b20927172d Uploaded
swebb
parents:
diff changeset
267 from the standard input. Make sure to specify the file
19b20927172d Uploaded
swebb
parents:
diff changeset
268 type of the file you want to have analyzed using the
19b20927172d Uploaded
swebb
parents:
diff changeset
269 --file_type option!
19b20927172d Uploaded
swebb
parents:
diff changeset
270 -o OUTPUT_FILE, --output_file=OUTPUT_FILE
19b20927172d Uploaded
swebb
parents:
diff changeset
271 Use this flag to override the standard output file
19b20927172d Uploaded
swebb
parents:
diff changeset
272 names. All alignments will be written to one output
19b20927172d Uploaded
swebb
parents:
diff changeset
273 file.
19b20927172d Uploaded
swebb
parents:
diff changeset
274 -g FILE, --genes_file=FILE
19b20927172d Uploaded
swebb
parents:
diff changeset
275 here you need to type in the name of your gene list
19b20927172d Uploaded
swebb
parents:
diff changeset
276 file (1 column) or the hittable file
19b20927172d Uploaded
swebb
parents:
diff changeset
277 --chr=FILE
19b20927172d Uploaded
swebb
parents:
diff changeset
278 if you simply would like to align reads against a
19b20927172d Uploaded
swebb
parents:
diff changeset
279 genomic sequence you should generate a tab delimited
19b20927172d Uploaded
swebb
parents:
diff changeset
280 file containing an identifyer, chromosome name, start
19b20927172d Uploaded
swebb
parents:
diff changeset
281 position, end position and strand
19b20927172d Uploaded
swebb
parents:
diff changeset
282 --gtf=annotation_file.gtf
19b20927172d Uploaded
swebb
parents:
diff changeset
283 type the path to the gtf annotation file that you want
19b20927172d Uploaded
swebb
parents:
diff changeset
284 to use
19b20927172d Uploaded
swebb
parents:
diff changeset
285 --tab=tab_file.tab
19b20927172d Uploaded
swebb
parents:
diff changeset
286 type the path to the tab file that contains the
19b20927172d Uploaded
swebb
parents:
diff changeset
287 genomic reference sequence
19b20927172d Uploaded
swebb
parents:
diff changeset
288 --file_type=FILE_TYPE
19b20927172d Uploaded
swebb
parents:
diff changeset
289 use this option to specify the file type (i.e. 'novo',
19b20927172d Uploaded
swebb
parents:
diff changeset
290 'sam', 'gtf'). This will tell the program which
19b20927172d Uploaded
swebb
parents:
diff changeset
291 parsers to use for processing the files. Default =
19b20927172d Uploaded
swebb
parents:
diff changeset
292 'novo'
19b20927172d Uploaded
swebb
parents:
diff changeset
293
19b20927172d Uploaded
swebb
parents:
diff changeset
294 pyReadAligner specific options::
19b20927172d Uploaded
swebb
parents:
diff changeset
295
19b20927172d Uploaded
swebb
parents:
diff changeset
296 --limit=500
19b20927172d Uploaded
swebb
parents:
diff changeset
297 with this option you can select how many reads mapped
19b20927172d Uploaded
swebb
parents:
diff changeset
298 to a particular gene/ORF/region you want to count.
19b20927172d Uploaded
swebb
parents:
diff changeset
299 Default = All
19b20927172d Uploaded
swebb
parents:
diff changeset
300
19b20927172d Uploaded
swebb
parents:
diff changeset
301 Common options::
19b20927172d Uploaded
swebb
parents:
diff changeset
302
19b20927172d Uploaded
swebb
parents:
diff changeset
303 --ignorestrand
19b20927172d Uploaded
swebb
parents:
diff changeset
304 this flag tells the program to ignore strand
19b20927172d Uploaded
swebb
parents:
diff changeset
305 information and all overlapping reads will considered
19b20927172d Uploaded
swebb
parents:
diff changeset
306 sense reads. Useful for analysing ChIP or RIP data
19b20927172d Uploaded
swebb
parents:
diff changeset
307 --overlap=1
19b20927172d Uploaded
swebb
parents:
diff changeset
308 sets the number of nucleotides a read has to overlap
19b20927172d Uploaded
swebb
parents:
diff changeset
309 with a gene before it is considered a hit. Default =
19b20927172d Uploaded
swebb
parents:
diff changeset
310 1 nucleotide
19b20927172d Uploaded
swebb
parents:
diff changeset
311 -s genomic, --sequence=genomic
19b20927172d Uploaded
swebb
parents:
diff changeset
312 with this option you can select whether you want the
19b20927172d Uploaded
swebb
parents:
diff changeset
313 reads aligned to the genomic or the coding sequence.
19b20927172d Uploaded
swebb
parents:
diff changeset
314 Default = genomic
19b20927172d Uploaded
swebb
parents:
diff changeset
315 -r 100, --range=100
19b20927172d Uploaded
swebb
parents:
diff changeset
316 allows you to set the length of the UTR regions. If
19b20927172d Uploaded
swebb
parents:
diff changeset
317 you set '-r 50' or '--range=50', then the program will
19b20927172d Uploaded
swebb
parents:
diff changeset
318 set a fixed length (50 bp) regardless of whether the
19b20927172d Uploaded
swebb
parents:
diff changeset
319 GTF file has genes with annotated UTRs.
19b20927172d Uploaded
swebb
parents:
diff changeset
320
19b20927172d Uploaded
swebb
parents:
diff changeset
321 Options for novo, SAM and BAM files::
19b20927172d Uploaded
swebb
parents:
diff changeset
322
19b20927172d Uploaded
swebb
parents:
diff changeset
323 --align_quality=100, --mapping_quality=100
19b20927172d Uploaded
swebb
parents:
diff changeset
324 with these options you can set the alignment quality
19b20927172d Uploaded
swebb
parents:
diff changeset
325 (Novoalign) or mapping quality (SAM) threshold. Reads
19b20927172d Uploaded
swebb
parents:
diff changeset
326 with qualities lower than the threshold will be
19b20927172d Uploaded
swebb
parents:
diff changeset
327 ignored. Default = 0
19b20927172d Uploaded
swebb
parents:
diff changeset
328 --align_score=100
19b20927172d Uploaded
swebb
parents:
diff changeset
329 with this option you can set the alignment score
19b20927172d Uploaded
swebb
parents:
diff changeset
330 threshold. Reads with alignment scores lower than the
19b20927172d Uploaded
swebb
parents:
diff changeset
331 threshold will be ignored. Default = 0
19b20927172d Uploaded
swebb
parents:
diff changeset
332 -l 100, --length=100
19b20927172d Uploaded
swebb
parents:
diff changeset
333 to set read length threshold. Default = 1000
19b20927172d Uploaded
swebb
parents:
diff changeset
334 -m 100000, --max=100000
19b20927172d Uploaded
swebb
parents:
diff changeset
335 maximum number of mapped reads that will be analyzed.
19b20927172d Uploaded
swebb
parents:
diff changeset
336 Default = All
19b20927172d Uploaded
swebb
parents:
diff changeset
337 --unique
19b20927172d Uploaded
swebb
parents:
diff changeset
338 with this option reads with multiple alignment
19b20927172d Uploaded
swebb
parents:
diff changeset
339 locations will be removed. Default = Off
19b20927172d Uploaded
swebb
parents:
diff changeset
340 --blocks
19b20927172d Uploaded
swebb
parents:
diff changeset
341 with this option reads with the same start and end
19b20927172d Uploaded
swebb
parents:
diff changeset
342 coordinates on a chromosome will only be counted once.
19b20927172d Uploaded
swebb
parents:
diff changeset
343 Default = Off
19b20927172d Uploaded
swebb
parents:
diff changeset
344 --discarded=FILE
19b20927172d Uploaded
swebb
parents:
diff changeset
345 prints the lines from the alignments file that were
19b20927172d Uploaded
swebb
parents:
diff changeset
346 discarded by the parsers. This file contains reads
19b20927172d Uploaded
swebb
parents:
diff changeset
347 that were unmapped (NM), of poor quality (i.e. QC) or
19b20927172d Uploaded
swebb
parents:
diff changeset
348 paired reads that were mapped to different chromosomal
19b20927172d Uploaded
swebb
parents:
diff changeset
349 locations or were too far apart on the same
19b20927172d Uploaded
swebb
parents:
diff changeset
350 chromosome. Useful for debugging purposes
19b20927172d Uploaded
swebb
parents:
diff changeset
351 -d 1000, --distance=1000
19b20927172d Uploaded
swebb
parents:
diff changeset
352 this option allows you to set the maximum number of
19b20927172d Uploaded
swebb
parents:
diff changeset
353 base-pairs allowed between two non-overlapping paired
19b20927172d Uploaded
swebb
parents:
diff changeset
354 reads. Default = 1000
19b20927172d Uploaded
swebb
parents:
diff changeset
355 --mutations=delsonly
19b20927172d Uploaded
swebb
parents:
diff changeset
356 Use this option to only track mutations that are of
19b20927172d Uploaded
swebb
parents:
diff changeset
357 interest. For CRAC data this is usually deletions
19b20927172d Uploaded
swebb
parents:
diff changeset
358 (--mutations=delsonly). For PAR-CLIP data this is
19b20927172d Uploaded
swebb
parents:
diff changeset
359 usually T-C mutations (--mutations=TC). Other options
19b20927172d Uploaded
swebb
parents:
diff changeset
360 are: do not report any mutations: --mutations=nomuts.
19b20927172d Uploaded
swebb
parents:
diff changeset
361 Only report specific base mutations, for example only
19b20927172d Uploaded
swebb
parents:
diff changeset
362 in T's, C's and G's :--mutations=[TCG]. The brackets
19b20927172d Uploaded
swebb
parents:
diff changeset
363 are essential. Other nucleotide combinations are also
19b20927172d Uploaded
swebb
parents:
diff changeset
364 possible
19b20927172d Uploaded
swebb
parents:
diff changeset
365
19b20927172d Uploaded
swebb
parents:
diff changeset
366
19b20927172d Uploaded
swebb
parents:
diff changeset
367 </help>
19b20927172d Uploaded
swebb
parents:
diff changeset
368 </tool>