comparison tools/spades_3_0/spades.xml @ 8:ff058438080a draft

Version 0.8, supports SPAdes 3.0.0
author lionelguy
date Wed, 05 Feb 2014 05:19:03 -0500
parents
children
comparison
equal deleted inserted replaced
7:95ddc2380130 8:ff058438080a
1 <tool id="spades" name="spades" version="0.8">
2 <description>SPAdes genome assembler for regular and single-cell projects</description>
3 <requirements>
4 <requirement type="package" version="3.0.0">spades</requirement>
5 </requirements>
6 <command interpreter="perl">spades.pl
7 $out_contigs
8 $out_contig_stats
9 $out_scaffolds
10 $out_scaffold_stats
11 $out_log
12 ## A real command looks like: spades.py -k 21,33,55,77,99,127 --careful -1 Y.fastq.gz -2 X.fastq.gz -t 24 -o output
13 spades.py
14 ## Forces unzipped output, faster
15 --disable-gzip-output
16 $sc
17 $onlyassembler
18 $careful
19 -t \${GALAXY_SLOTS:-16}
20 -k "$kmers"
21 $iontorrent
22 ## Sequence files, libraries
23 #for $i, $library in enumerate( $libraries )
24 #set num=$i+1
25 #if str( $library.lib_type ) == "paired_end":
26 #set prefix = 'pe'
27 #else:
28 #set prefix = 'mp'
29 #end if
30 --$prefix$num-$library.orientation
31 #for $file in $library.files
32 #if $file.file_type.type == "separate"
33 --$prefix$num-1 fastq:$file.file_type.fwd_reads
34 --$prefix$num-2 fastq:$file.file_type.rev_reads
35 #elif $file.file_type.type == "interleaved"
36 --$prefix$num-12 fastq:$file.file_type.interleaved_reads
37 #elif $file.file_type.type == "unpaired"
38 --$prefix$num-s fastq:$file.file_type.unpaired_reads
39 #end if
40 #end for
41 #end for
42 ## PacBio reads
43 #for $i, $pacbiolib in enumerate( $pacbio )
44 --pacbio fastq:$pacbiolib.pacbio_reads
45 #end for
46 ## Sanger
47 #for $i, $sangerlib in enumerate( $sanger )
48 --sanger $sangerlib.file_type.type:$sangerlib.file_type.sanger_reads
49 #end for
50 ## Contigs
51 #for $i, $trustedcontigs in enumerate( $trustedcontigs )
52 --trusted-contigs $trustedcontigs.file_type.type:$trustedcontigs.file_type.trusted_contigs
53 #end for
54 #for $i, $untrustedcontigs in enumerate( $untrustedcontigs )
55 --untrusted-contigs $untrustedcontigs.file_type.type:$untrustedcontigs.file_type.untrusted_contigs
56 #end for
57 </command>
58 <inputs>
59 <param name="sc" type="boolean" truevalue="--sc" falsevalue="" label="Single-cell?" help="This option is required for MDA (single-cell) data.">
60 <option value="false">No</option>
61 <option value="true">Yes</option>
62 </param>
63 <param name="onlyassembler" type="boolean" truevalue="--only-assembler" falsevalue="" checked="False" label="Run only assembly? (without read error correction)" />
64 <param name="careful" type="boolean" truevalue="--careful" falsevalue="" checked="True" label="Careful correction?" help="Tries to reduce number of mismatches and short indels. Also runs MismatchCorrector – a post processing tool, which uses BWA tool (comes with SPAdes)." />
65 <param name="kmers" type="text" label="K-mers to use, separated by commas" value="21,33,55" help="Comma-separated list of k-mer sizes to be used (all values must be odd, less than 128, listed in ascending order, and smaller than the read length). The default value is 21,33,55." >
66 </param>
67 <param name="iontorrent" type="boolean" truevalue="--iontorrent" falsevalue="" checked="False" label="Libraries are IonTorrent reads?" />
68 <!-- Reads -->
69 <repeat name="libraries" title="Libraries" min="1" help="It is not possible to specify only mate-pair libraries. Scaffolds are not produced if neither a paired-end nor a mate-pair library is provided.">
70 <param name="lib_type" type="select" label="Library type">
71 <option value="paired_end">Paired-end / Single reads</option>
72 <option value="mate_paired">Mate pairs</option>
73 </param>
74 <param name="orientation" type="select" label="Orientation">
75 <option value="fr" selected="true">-> &lt;- (fr)</option>
76 <option value="rf">&lt;- -> (rf)</option>
77 <option value="ff">-> -> (ff)</option>
78 </param>
79 <repeat name="files" title="Files" min="1">
80 <conditional name="file_type">
81 <param name="type" type="select" label="Select file format">
82 <option value="separate">Separate input files</option>
83 <option value="interleaved">Interleaved files</option>
84 <option value="unpaired">Unpaired/Single reads</option>
85 </param>
86 <when value="separate">
87 <param name="fwd_reads" type="data" format="fastq" label="Forward reads" help="FASTQ format" />
88 <param name="rev_reads" type="data" format="fastq" label="Reverse reads" help="FASTQ format" />
89 </when>
90 <when value="interleaved">
91 <param name="interleaved_reads" type="data" format="fastq" label="Interleaved paired reads" help="FASTQ format" />
92 </when>
93 <when value="unpaired">
94 <param name="unpaired_reads" type="data" format="fastq" label="Unpaired reads" help="FASTQ format" />
95 </when>
96 </conditional>
97 </repeat>
98 </repeat>
99 <!-- PacBio -->
100 <repeat name="pacbio" title="PacBio CLR reads">
101 <param name="pacbio_reads" type="data" format="fastq" label="PacBio CLR reads." help="FASTQ format. For PacBio pre-corrected or CCS reads, use single reads above." />
102 </repeat>
103 <!-- Sanger -->
104 <repeat name="sanger" title="Sanger reads">
105 <conditional name="file_type">
106 <param name="type" type="select" label="Select file format" help="No read correction is done on Sanger reads, no need to provide quality information.">
107 <option value="fasta">fasta</option>
108 <option value="fastq">fastq</option>
109 </param>
110 <when value="fasta">
111 <param name="sanger_reads" type="data" format="fasta" label="Sanger reads" help="FASTA format" />
112 </when>
113 <when value="fastq">
114 <param name="sanger_reads" type="data" format="fastq" label="Sanger reads" help="FASTQ format" />
115 </when>
116 </conditional>
117 </repeat>
118 <!-- Contigs -->
119 <repeat name="trustedcontigs" title="Trusted contigs" help="Reliable contigs of the same genome, which are likely to have no misassemblies and small rate of other errors (e.g. mismatches and indels). This option is not intended for contigs of the related species.">
120 <conditional name="file_type">
121 <param name="type" type="select" label="Select file format">
122 <option value="fasta">fasta</option>
123 <option value="fastq">fastq</option>
124 </param>
125 <when value="fasta">
126 <param name="trusted_contigs" type="data" format="fasta" label="Trusted contigs" help="FASTA format" />
127 </when>
128 <when value="fastq">
129 <param name="trusted_contigs" type="data" format="fastq" label="Trusted contigs" help="FASTQ format" />
130 </when>
131 </conditional>
132 </repeat>
133 <repeat name="untrustedcontigs" title="Untrusted contigs" help="Contigs of the same genome, quality of which is average or unknown. Contigs of poor quality can be used but may introduce errors in the assembly. This option is also not intended for contigs of the related species.">
134 <conditional name="file_type">
135 <param name="type" type="select" label="Select file format">
136 <option value="fasta">fasta</option>
137 <option value="fastq">fastq</option>
138 </param>
139 <when value="fasta">
140 <param name="untrusted_contigs" type="data" format="fasta" label="Untrusted contigs" help="FASTA format" />
141 </when>
142 <when value="fastq">
143 <param name="untrusted_contigs" type="data" format="fastq" label="Untrusted contigsz" help="FASTQ format" />
144 </when>
145 </conditional>
146 </repeat>
147 </inputs>
148 <outputs>
149 <data name="out_contigs" format="fasta" label="SPAdes contigs (fasta)" />
150 <data name="out_contig_stats" format="tabular" label="SPAdes contig stats" />
151 <data name="out_scaffolds" format="fasta" label="SPAdes scaffolds (fasta)" />
152 <data name="out_scaffold_stats" format="tabular" label="SPAdes scaffold stats" />
153 <data name="out_log" format="txt" label="SPAdes log" />
154 </outputs>
155 <!-- <tests>
156 <test>
157 <param name="sc" value="false" />
158 <param name="careful" value="false" />
159 <param name="kmers" value="33,55" />
160 <param name="type" value="pairedend" />
161 <param name="fwd_reads" value="ecoli_1K_1.fq" ftype="fastq" />
162 <param name="rev_reads" value="ecoli_1K_2.fq" ftype="fastq" />
163 <output name="out_contigs" file="reference_1K.fa" ftype="fasta" compare="re_match" lines_diff="1" />
164 </test>
165 </tests> -->
166 <help>
167 **What it does**
168
169 SPAdes – St. Petersburg genome assembler – is intended for both standard isolates and single-cell MDA bacteria assemblies. See http://bioinf.spbau.ru/en/spades for more details on SPAdes.
170
171 This wrapper runs SPAdes 3.0.0, collects the output, and throws away all the temporary files. It also produces a tab file with contig names, length and coverage.
172
173 **SPAdes citation**
174
175 Anton Bankevich, Sergey Nurk, Dmitry Antipov, Alexey A. Gurevich, Mikhail Dvorkin, Alexander S. Kulikov, Valery M. Lesin, Sergey I. Nikolenko, Son Pham, Andrey D. Prjibelski, Alexey V. Pyshkin, Alexander V. Sirotkin, Nikolay Vyahhi, Glenn Tesler, Max A. Alekseyev, and Pavel A. Pevzner. Journal of Computational Biology. May 2012, 19(5): 455-477. doi:10.1089/cmb.2012.0021.
176
177 **License**
178
179 SPAdes is developed by and copyrighted to Saint-Petersburg Academic University, and is released under GPLv2.
180
181 This wrapper is copyrighted by Lionel Guy, and is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
182
183 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
184
185 You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
186
187 ** Acknowledgments **
188
189 Anton Korobeynikov greatlty helped understanding how SPAdes work, and integrated handy features into SPAdes.
190
191 Nicola Soranzo fixed various bugs.
192 </help>
193 </tool>