annotate velvet.xml @ 0:d81360ea69d8 draft

Initial upload
author simon-gladman
date Tue, 28 Jun 2016 17:30:32 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
1 <tool id="velvet" name="velvet" version="0.1.0">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
2 <requirements>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
3 <requirement type="package" version="1.2.10">velvet</requirement>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
4 </requirements>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
5 <stdio>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
6 <exit_code range="1:" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
7 </stdio>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
8
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
9 <command><![CDATA[
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
10 velveth
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
11 out
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
12 $kmer
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
13 #for $i in $files:
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
14 -${i.filetype}
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
15
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
16 #if str($i.paired_type.paired_type_selector) == "paired":
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
17
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
18 #if $i.__index__ > 1:
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
19 -shortPaired$i.__index__
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
20 #else
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
21 -shortPaired
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
22 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
23
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
24 -separate $i.paired_type.input1 $i.paired_type.input2
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
25 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
26
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
27 #if str($i.paired_type.paired_type_selector) == "single"
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
28
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
29 #if $i.__index__ > 1
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
30 -short$i.__index__
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
31 #else
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
32 -short
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
33 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
34
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
35 $i.paired_type.input1
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
36 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
37
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
38 #if str($i.paired_type.paired_type_selector) == "paired_collection"
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
39 #if $i.__index__ > 1
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
40 -shortPaired$i.__index__
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
41 #else
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
42 -shortPaired
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
43 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
44 -separate $i.paired_type.input1.forward $i.paired_type.input1.reverse
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
45 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
46 #if str($i.paired_type.paired_type_selector) == "paired_iv"
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
47 #if $i.__index__ > 1
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
48 -shortPaired$i.__index__
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
49 #else
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
50 -shortPaired
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
51 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
52 $i.paired_type.input1
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
53 #end if
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
54 #end for
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
55
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
56 &&
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
57
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
58 velvetg out > $log
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
59 ]]></command>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
60 <inputs>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
61 <param name="kmer" type="integer" value="29" label="K-mer" help="The kmer value to use for velvet - must be an odd integer between 19 and 191" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
62 <repeat name="files" title="Input files" min="1">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
63 <param name="filetype" label="Input file type" type="select" help="Input file type">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
64 <option value="fastq">Fastq</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
65 <option value="fasta">Fasta</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
66 <option value="bam">Bam</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
67 </param>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
68 <conditional name="paired_type">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
69 <param name="paired_type_selector" type="select" label="Single or paired end reads" help="Select between paired and single end data">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
70 <option value="paired">Paired</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
71 <option value="single">Single</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
72 <option value="paired_collection">Paired Collection</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
73 <option value="paired_iv">Paired Interleaved</option>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
74 </param>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
75 <when value="paired">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
76 <param name="input1" type="data" format="fastqsanger,fasta,bam" label="Select first set of reads" help="Specify dataset with forward reads"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
77 <param name="input2" type="data" format="fastqsanger,fasta,bam" label="Select second set of reads" help="Specify dataset with reverse reads"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
78 </when>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
79 <when value="single">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
80 <param name="input1" type="data" format="fastqsanger,fasta,bam" label="Select the reads" help="Specify dataset with the reads"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
81 </when>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
82 <when value="paired_collection">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
83 <param name="input1" format="fastqsanger,fasta" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
84 </when>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
85 <when value="paired_iv">
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
86 <param name="input1" type="data" format="fastqsanger,fasta,bam" label="Select set of interleaved reads" help="Specify dataset with interleaved paired reads"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
87 </when>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
88 </conditional>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
89 </repeat>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
90
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
91 </inputs>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
92 <outputs>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
93 <data format="fasta" name="contigs" label="${tool.name} on ${on_string}: Contigs" from_work_dir="out/contigs.fa"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
94 <data format="tabular" name="stats" label="${tool.name} on ${on_string}: Contig Stats" from_work_dir="out/stats.txt"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
95 <data format="tabular" name="graph" label="${tool.name} on ${on_string}: Last Graph" from_work_dir="out/LastGraph"/>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
96 <data format="tabular" name="log" label="${tool.name} on ${on_string}: log" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
97 </outputs>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
98 <tests>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
99 <test>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
100 <param name="kmer" value="29" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
101 <param name="files_0|filetype" value="fasta" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
102 <param name="files_0|paired_type|paired_type_selector" value="single" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
103 <param name="files_0|paired_type|input1" value="test_reads.fa" ftype="fasta" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
104 <output name="contigs" ftype="fasta" file="contigs.fa" />
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
105 </test>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
106 </tests>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
107 <help><![CDATA[
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
108 The Velvet wrapper, wraps both velveth and velvetg for single kmer value with no parameters supplied to velvetg. It is mainly for teaching how kmer size affects the assembly.
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
109
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
110 It returns the contigs.fa file, the contig_stats.txt file, the LastGraph file and captures the screen output to the log.
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
111
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
112 This tool is mainly wrapped for assembly teaching purposes. It should not be used for actual assemblies. Please use the Velvet Optimiser for this purpose.
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
113
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
114 The kmer value supplied needs to be an odd integer.
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
115 ]]></help>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
116 <citations>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
117 <citation type="doi">10.1101/gr.074492.107</citation>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
118 <citation type="doi">10.1371/journal.pone.0008407</citation>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
119 </citations>
d81360ea69d8 Initial upload
simon-gladman
parents:
diff changeset
120 </tool>