Mercurial > repos > peterjc > mira4_assembler
annotate tools/mira4_0/mira4_de_novo.xml @ 34:0785a6537f3e draft
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 6405ba93fcec7ea93452bf54d559c7507ee7a57c
author | peterjc |
---|---|
date | Wed, 07 Jun 2017 12:33:39 -0400 |
parents | 1291ed21789f |
children | 259891fce7fd |
rev | line source |
---|---|
32
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
1 <tool id="mira_4_0_de_novo" name="MIRA v4.0 de novo assember" version="0.0.10"> |
25 | 2 <description>Takes Sanger, Roche 454, Solexa/Illumina, Ion Torrent and PacBio reads</description> |
3 <requirements> | |
4 <requirement type="package" version="4.0.2">MIRA</requirement> | |
5 <requirement type="package" version="0.1.19">samtools</requirement> | |
6 </requirements> | |
7 <code file="mira4_validator.py" /> | |
32
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
8 <version_command> |
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
9 python $__tool_directory__/mira4.py --version |
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
10 </version_command> |
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
11 <command detect_errors="aggressive"> |
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
12 python $__tool_directory__/mira4.py |
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
13 --manifest '$manifest' |
25 | 14 #if str($maf_wanted)=="true": |
32
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
15 --maf '$out_maf' |
25 | 16 #end if |
17 #if str($bam_wanted)=="true": | |
32
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
18 --bam '$out_bam' |
25 | 19 #end if |
32
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
20 --fasta '$out_fasta' |
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
21 --log '$out_log' |
25 | 22 </command> |
23 <configfiles> | |
24 <configfile name="manifest"> | |
25 project = MIRA | |
26 job = denovo,${job_type},${job_quality} | |
27 parameters = -NW:cmrnl=no -DI:trt=/tmp -OUT:orc=no | |
28 ## -GE:not is short for -GENERAL:number_of_threads and using one (1) | |
29 ## can be useful for repeatability of assemblies and bug hunting. | |
30 ## This is overriden by the command line -t switch which is easier | |
31 ## to set from within Galaxy. | |
32 ## | |
33 ## -NW:cmrnl is short for -NAG_AND_WARN:check_maxreadnamelength | |
34 ## and without this MIRA aborts with read names over 40 characters | |
35 ## due to limitations of some downstream tools. | |
36 ## | |
37 ## -DI:trt is short for -DIRECTORY:tmp_redirected_to and should | |
38 ## point to a local hard drive (not something like NFS on network). | |
39 ## We replace /tmp with an environment variable via mira4.py | |
40 ## | |
41 ## -OUT:orc=no is short for -OUTPUT:output_result_caf=no | |
42 ## which turns off an output file we don't want anyway. | |
43 | |
44 #for $rg in $read_group | |
45 | |
46 ##This bar goes into the manifest as a comment line | |
47 #------------------------------------------------------------------------------ | |
48 | |
49 readgroup | |
50 technology = ${rg.technology} | |
51 ##Record the segment placement (if any) | |
52 #if str($rg.segments.type) == "paired" | |
53 segment_placement = ${rg.segments.placement} | |
54 segment_naming = ${rg.segments.naming} | |
55 #if str($rg.segments.min_size) != "" or str($rg.segments.max_size) != "" | |
56 ##If our min/max validation failed I trust MIRA to give an error message... | |
57 template_size = $rg.segments.min_size $rg.segments.max_size | |
58 #end if | |
59 #end if | |
60 ##if str($rg.segments.type) == "none" | |
61 ##MIRA4 manual says use segment_placement = unknown or ? for unpaired data | |
62 ##but this stopped working in MIRA 4.0 RC5 and 4.0 (final). See: | |
63 ##http://www.freelists.org/post/mira_talk/Unpaired-reads-and-segment-placement--or-unknown | |
64 ##segment_placement = ? | |
65 ##end if | |
66 ##MIRA will accept multiple filenames on one data line, or multiple data lines | |
67 #for $f in $rg.filenames | |
68 ##Must now map Galaxy datatypes to MIRA file types... | |
69 #if $f.ext.startswith("fastq") | |
70 ##MIRA doesn't like fastqsanger etc, just plain old fastq: | |
71 data = fastq::$f | |
72 #elif $f.ext == "mira" | |
73 ##We're calling *.maf the "mira" format in Galaxy (name space collision) | |
74 data = maf::$f | |
75 #else | |
76 ##MIRA is happy with fasta as name, | |
77 data = ${f.ext}::$f | |
78 #end if | |
79 #end for | |
80 #end for | |
81 </configfile> | |
82 </configfiles> | |
83 <inputs> | |
84 <param name="job_type" type="select" label="Assembly type"> | |
85 <option value="genome">Genome</option> | |
86 <option value="est">EST (transcriptome)</option> | |
87 </param> | |
88 <param name="job_quality" type="select" label="Assembly quality grade"> | |
89 <option value="accurate">Accurate</option> | |
90 <option value="draft">Draft</option> | |
91 </param> | |
92 <repeat name="read_group" title="Read Group" min="1"> | |
93 <param name="technology" type="select" label="Read technology"> | |
94 <option value="solexa">Solexa/Illumina</option> | |
95 <option value="sanger">Sanger cappillary sequencing</option> | |
96 <option value="454">Roche 454</option> | |
97 <option value="iontor">Ion Torrent</option> | |
98 <option value="pcbiolq">PacBio low quality (raw)</option> | |
99 <option value="pcbiohq">PacBio high quality (corrected)</option> | |
100 <option value="text">Synthetic reads (database entries, consensus sequences, artifical reads, etc)</option> | |
101 <!-- TODO reference/backbone as an entry here? --> | |
102 </param> | |
103 <conditional name="segments"> | |
104 <param name="type" type="select" label="Are these paired reads?"> | |
105 <option value="paired">Paired reads</option> | |
106 <option value="none">Single reads or not relevant (e.g. primer walking with Sanger capillary sequencing)</option> | |
107 </param> | |
108 <when value="paired"> | |
109 <param name="placement" type="select" label="Pairing type (segment placing)"> | |
110 <option value="FR">---> <--- (e.g. Sanger capillary or Solexa/Illumina paired-end library)</option> | |
111 <option value="RF"><--- ---> (e.g. Solexa/Illumina mate-pair library)</option> | |
112 <option value="SB">2---> 1---> (e.g. Roche 454 paired-end libraries or IonTorrent long-mate; see note)</option> | |
113 </param> | |
114 <!-- min/max validation is done via the <code> tag --> | |
115 <param name="min_size" type="integer" optional="true" min="0" value="" | |
116 label="Minimum size of 'good' DNA templates in the library preparation" | |
117 help="Optional, but if used you must also supply a maximum value." /> | |
118 <param name="max_size" type="integer" optional="true" min="0" value="" | |
119 label="Maximum size of 'good' DNA templates in the library preparation" | |
120 help="Optional, but if used you must also supply a minimum value." /> | |
121 <param name="naming" type="select" label="Pair naming convention"> | |
122 <option value="solexa">Solexa/Illumina (using '/1' and '/2' suffixes, or later Illumina colon system)</option> | |
123 <option value="FR">Forward/Reverse scheme (using '.f*' and '.r*' suffixes)</option> | |
124 <option value="tigr">TIGR scheme (using 'TF*' and 'TR*' suffixes)</option> | |
125 <option value="sanger">Sanger scheme (see notes)</option> | |
126 <option value="stlouis">St. Louis scheme (see notes)</option> | |
127 </param> | |
128 </when> | |
129 <when value="none" /><!-- no further questions --> | |
130 </conditional> | |
32
56b421d59805
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit fd979d17340cde155de176604744831d9597c6b6
peterjc
parents:
26
diff
changeset
|
131 <param name="filenames" type="data" format="fastq,mira" multiple="true" optional="false" label="Read file(s)" |
25 | 132 help="Multiple files allowed, for example paired reads can be given as two files (MIRA looks at read names to identify pairs)." /> |
133 </repeat> | |
33
1291ed21789f
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 1d7d466d01b23d03d214e93f1f8efa19cfa18268
peterjc
parents:
32
diff
changeset
|
134 <param name="maf_wanted" type="boolean" label="Output assembly in MIRA's own format?" checked="false" /> |
1291ed21789f
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 1d7d466d01b23d03d214e93f1f8efa19cfa18268
peterjc
parents:
32
diff
changeset
|
135 <param name="bam_wanted" type="boolean" label="Convert assembly into BAM format?" checked="true" /> |
25 | 136 </inputs> |
137 <outputs> | |
138 <data name="out_fasta" format="fasta" label="MIRA de novo contigs (FASTA)" /> | |
139 <data name="out_bam" format="bam" label="MIRA de novo assembly (BAM)"> | |
140 <filter>bam_wanted is True</filter> | |
141 </data> | |
142 <data name="out_maf" format="mira" label="MIRA de novo assembly"> | |
143 <filter>maf_wanted is True</filter> | |
144 </data> | |
145 <!-- TODO? | |
146 <data name="out_contigstats" format="tabular" label="MIRA contig stats" /> | |
147 --> | |
148 <data name="out_log" format="txt" label="MIRA de novo log" /> | |
149 </outputs> | |
150 <tests> | |
151 <!-- Tiger mitochondria, selected paired end Illumina reads from SRR639755 | |
152 Note we're using just one repeat group, and only the filenames parameter | |
153 within it, so this should work with current test framework limitations: | |
154 TODO: Revise example and/or -NW:cac=warn and -NW:acv=80 settings | |
155 MIRA 4.0 complains as coverage is about x93 which is over 80 limit. | |
156 Also MIRA 4.0 gives three contigs as output. | |
157 <test> | |
158 <param name="job_type" value="genome" /> | |
159 <param name="job_quality" value="accurate" /> | |
160 <param name="filenames" value="SRR639755_mito_pairs.fastq.gz" ftype="fastqsanger" /> | |
161 <output name="out_fasta" file="SRR639755_mito_pairs.mira4_de_novo.fasta" ftype="fasta" /> | |
162 </test> | |
163 --> | |
164 <!-- Simple assembly based on MIRA's minidemo/demo4 example | |
165 Note we're using just one repeat group, | |
166 but several parameters with the repeat | |
167 --> | |
168 <test> | |
169 <param name="job_type" value="genome" /> | |
170 <param name="job_quality" value="accurate" /> | |
171 <param name="technology" value="sanger" /> | |
172 <param name="type" value="none" /> | |
173 <param name="filenames" value="U13small_m.fastq" ftype="fastqsanger" /> | |
174 <param name="maf_wanted" value="true"/> | |
26
8aeb92e76159
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 4fbb738ddbc87132ca11dfaaaa38aa922ac87115-dirty
peterjc
parents:
25
diff
changeset
|
175 <param name="bam_wanted" value="false"/> |
25 | 176 <output name="out_fasta" file="U13small_m.mira4_de_novo.fasta" ftype="fasta" /> |
26
8aeb92e76159
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 4fbb738ddbc87132ca11dfaaaa38aa922ac87115-dirty
peterjc
parents:
25
diff
changeset
|
177 <output name="out_maf" file="U13small_m.mira4_de_novo.mira" ftype="mira" /> |
8aeb92e76159
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 4fbb738ddbc87132ca11dfaaaa38aa922ac87115-dirty
peterjc
parents:
25
diff
changeset
|
178 <output name="out_log" file="empty_file.dat" compare="contains" ftype="txt" /> |
25 | 179 </test> |
180 <!-- Simple assembly based on MIRA's minidemo/solexa1 example | |
181 Note we're using just one repeat group, | |
182 but two parameters within the repeat (filename, no pairing) | |
183 --> | |
184 <test> | |
185 <param name="job_type" value="genome" /> | |
186 <param name="job_quality" value="accurate" /> | |
187 <param name="type" value="none" /> | |
188 <param name="filenames" value="ecoli.fastq" ftype="fastqsanger" /> | |
189 <param name="maf_wanted" value="false"/> | |
190 <param name="bam_wanted" value="false"/> | |
191 <output name="out_fasta" file="ecoli.mira4_de_novo.fasta" ftype="fasta" /> | |
26
8aeb92e76159
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 4fbb738ddbc87132ca11dfaaaa38aa922ac87115-dirty
peterjc
parents:
25
diff
changeset
|
192 <output name="out_log" file="empty_file.dat" compare="contains" ftype="txt" /> |
25 | 193 </test> |
194 </tests> | |
195 <help> | |
196 | |
197 **What it does** | |
198 | |
199 Runs MIRA v4.0 in de novo mode, collects the output, generates a sorted BAM | |
200 file, and then throws away all the temporary files. | |
201 | |
202 MIRA is an open source assembly tool capable of handling sequence data from | |
203 a range of platforms (Sanger capillary, Solexa/Illumina, Roche 454, Ion Torrent | |
204 and also PacBio). | |
205 | |
206 It is particularly suited to small genomes such as bacteria. | |
207 | |
208 | |
209 **Notes on paired reads** | |
210 | |
211 .. class:: warningmark | |
212 | |
213 MIRA uses read naming conventions to identify paired read partners | |
214 (and does not care about their order in the input files). In most cases, | |
215 the Solexa/Illumina setting is fine. For Sanger capillary sequencing, | |
216 you may need to rename your reads to match one of the standard conventions | |
217 supported by MIRA. For Roche 454 or Ion Torrent the appropriate settings | |
218 depend on how the FASTQ file was produced: | |
219 | |
220 * If using Roche's ``sffinfo`` or older versions of ``sff_extract`` | |
221 to convert SFF files to FASTQ, your reads will probably have the | |
222 ``---> <---`` orientation and use the ``.f`` and ``.r`` | |
223 suffixes (FR naming). | |
224 | |
225 * If using a recent version of ``sff_extract``, then the ``/1`` and ``/2`` | |
226 suffixes are used (Solexa/Illumina style naming) and the original | |
227 ``2---> 1--->`` orientation is preserved. | |
228 | |
229 The reason for this is the raw data for Roche 454 and Ion Torrent paired-end | |
230 libraries sequences a circularised fragment such that the raw data begins | |
231 with the end of the fragment, a linker, then the start of the fragment. | |
232 This means both the start and end are sequenced from the same strand, and | |
233 have the orientation ``2---> 1--->``. However, in order to use the data | |
234 with traditional tools expecting Sanger capillary style ``---> <---`` | |
235 orientation it was common to reverse complement one of the pair to mimic this. | |
236 | |
237 | |
238 **Citation** | |
239 | |
240 If you use this Galaxy tool in work leading to a scientific publication please | |
241 cite the following papers: | |
242 | |
243 Peter J.A. Cock, Björn A. Grüning, Konrad Paszkiewicz and Leighton Pritchard (2013). | |
244 Galaxy tools and workflows for sequence analysis with applications | |
245 in molecular plant pathology. PeerJ 1:e167 | |
246 http://dx.doi.org/10.7717/peerj.167 | |
247 | |
248 Bastien Chevreux, Thomas Wetter and Sándor Suhai (1999). | |
249 Genome Sequence Assembly Using Trace Signals and Additional Sequence Information. | |
250 Computer Science and Biology: Proceedings of the German Conference on Bioinformatics (GCB) 99, pp. 45-56. | |
251 http://www.bioinfo.de/isb/gcb99/talks/chevreux/main.html | |
252 | |
253 This wrapper is available to install into other Galaxy Instances via the Galaxy | |
254 Tool Shed at http://toolshed.g2.bx.psu.edu/view/peterjc/mira4_assembler | |
255 </help> | |
256 <citations> | |
257 <citation type="doi">10.7717/peerj.167</citation> | |
258 <citation type="bibtex">@ARTICLE{Chevreux1999-mira3, | |
259 author = {B. Chevreux and T. Wetter and S. Suhai}, | |
260 year = {1999}, | |
261 title = {Genome Sequence Assembly Using Trace Signals and Additional Sequence Information}, | |
262 journal = {Computer Science and Biology: Proceedings of the German Conference on Bioinformatics (GCB)} | |
263 volume = {99}, | |
264 pages = {45-56}, | |
265 url = {http://www.bioinfo.de/isb/gcb99/talks/chevreux/main.html} | |
266 }</citation> | |
267 </citations> | |
268 </tool> |