1 | <tool id="velveth" name="velveth" version="1.0.0"> |
---|
2 | <description>Prepare a dataset for the Velvet velvetg Assembler</description> |
---|
3 | <command interpreter="python"> |
---|
4 | velveth_wrapper.py |
---|
5 | '$out_file1' '$out_file1.extra_files_path' |
---|
6 | $hash_length |
---|
7 | $strand_specific |
---|
8 | #for $i in $inputs |
---|
9 | ${i.file_format} |
---|
10 | ${i.read_type} |
---|
11 | ${i.input} |
---|
12 | #end for |
---|
13 | </command> |
---|
14 | <inputs> |
---|
15 | <param label="Hash Length" name="hash_length" type="select" help="k-mer length in base pairs of the words being hashed."> |
---|
16 | <option value="11">11</option> |
---|
17 | <option value="13">13</option> |
---|
18 | <option value="15">15</option> |
---|
19 | <option value="17">17</option> |
---|
20 | <option value="19">19</option> |
---|
21 | <option value="21" selected="yes">21</option> |
---|
22 | <option value="23">23</option> |
---|
23 | <option value="25">25</option> |
---|
24 | <option value="27">27</option> |
---|
25 | <option value="29">29</option> |
---|
26 | </param> |
---|
27 | <param name="strand_specific" type="boolean" checked="false" truevalue="-strand_specific" falsevalue="" label="Use strand specific transcriptome sequencing" help="If you are using a strand specific transcriptome sequencing protocol, you may wish to use this option for better results."/> |
---|
28 | <repeat name="inputs" title="Input Files"> |
---|
29 | <param label="file format" name="file_format" type="select"> |
---|
30 | <option value="-fasta" selected="yes">fasta</option> |
---|
31 | <option value="-fastq">fastq</option> |
---|
32 | <option value="-eland">eland</option> |
---|
33 | <option value="-gerald">gerald</option> |
---|
34 | </param> |
---|
35 | <param label="read type" name="read_type" type="select"> |
---|
36 | <option value="-short" selected="yes">short reads</option> |
---|
37 | <option value="-shortPaired">shortPaired reads</option> |
---|
38 | <option value="-short2">short2 reads</option> |
---|
39 | <option value="-shortPaired2">shortPaired2 reads</option> |
---|
40 | <option value="-long">long reads</option> |
---|
41 | <option value="-longPaired">longPaired reads</option> |
---|
42 | </param> |
---|
43 | |
---|
44 | <param name="input" type="data" format="fasta,fastq,eland,gerald" label="Dataset"/> |
---|
45 | </repeat> |
---|
46 | </inputs> |
---|
47 | <outputs> |
---|
48 | <data format="velvet" name="out_file1" /> |
---|
49 | </outputs> |
---|
50 | <requirements> |
---|
51 | <requirement type="package">velvet</requirement> |
---|
52 | </requirements> |
---|
53 | <tests> |
---|
54 | <test> |
---|
55 | <param name="hash_length" value="21" /> |
---|
56 | <param name="read_type" value="-shortPaired" /> |
---|
57 | <!-- <repeat name="inputs"> --> |
---|
58 | <param name="file_format" value="fasta" /> |
---|
59 | <param name="read_type" value="shortPaired reads" /> |
---|
60 | <param name="input" value="velvet_test_reads.fa" ftype="fasta" /> |
---|
61 | <!-- </repeat> --> |
---|
62 | <param name="strand_specific" value="" /> |
---|
63 | <output name="out_file1" file="velveth_test1/output.html" lines_diff="4"> |
---|
64 | <extra_files type="file" name='Sequences' value="velveth_test1/Sequences" compare="diff" /> |
---|
65 | <extra_files type="file" name='Roadmaps' value="velveth_test1/Roadmaps" compare="diff" /> |
---|
66 | </output> |
---|
67 | </test> |
---|
68 | </tests> |
---|
69 | <help> |
---|
70 | **Velvet Overview** |
---|
71 | |
---|
72 | Velvet_ is a de novo genomic assembler specially designed for short read sequencing technologies, such as Solexa or 454, developed by Daniel Zerbino and Ewan Birney at the European Bioinformatics Institute (EMBL-EBI), near Cambridge, in the United Kingdom. |
---|
73 | |
---|
74 | Velvet currently takes in short read sequences, removes errors then produces high quality unique contigs. It then uses paired-end read and long read information, when available, to retrieve the repeated areas between contigs. |
---|
75 | |
---|
76 | Read the Velvet `documentation`__ for details on using the Vevlet Assembler. |
---|
77 | |
---|
78 | .. _Velvet: http://www.ebi.ac.uk/~zerbino/velvet/ |
---|
79 | |
---|
80 | .. __: http://www.ebi.ac.uk/~zerbino/velvet/Manual.pdf |
---|
81 | |
---|
82 | ------ |
---|
83 | |
---|
84 | **Velveth** |
---|
85 | |
---|
86 | Velveth takes in a number of sequence files, produces a hashtable, then outputs two files in an output directory (creating it if necessary), Sequences and Roadmaps, which are necessary to velvetg. |
---|
87 | |
---|
88 | ------ |
---|
89 | |
---|
90 | **Hash Length** |
---|
91 | |
---|
92 | The hash length, also known as k-mer length, corresponds to the length, in base pairs, of the words being hashed. |
---|
93 | |
---|
94 | The hash length is the length of the k-mers being entered in the hash table. Firstly, you must observe three technical constraints:: |
---|
95 | |
---|
96 | # it must be an odd number, to avoid palindromes. If you put in an even number, Velvet will just decrement it and proceed. |
---|
97 | # it must be below or equal to MAXKMERHASH length (cf. 2.3.3, by default 31bp), because it is stored on 64 bits |
---|
98 | # it must be strictly inferior to read length, otherwise you simply will not observe any overlaps between reads, for obvious reasons. |
---|
99 | |
---|
100 | Now you still have quite a lot of possibilities. As is often the case, it's a trade- off between specificity and sensitivity. Longer kmers bring you more specificity (i.e. less spurious overlaps) but lowers coverage (cf. below). . . so there's a sweet spot to be found with time and experience. |
---|
101 | We like to think in terms of "k-mer coverage", i.e. how many times has a k-mer been seen among the reads. The relation between k-mer coverage Ck and standard (nucleotide-wise) coverage C is Ck = C # (L - k + 1)/L where k is your hash length, and L you read length. |
---|
102 | Experience shows that this kmer coverage should be above 10 to start getting decent results. If Ck is above 20, you might be "wasting" coverage. Experience also shows that empirical tests with different values for k are not that costly to run! |
---|
103 | |
---|
104 | **Input Files** |
---|
105 | |
---|
106 | Velvet works mainly with fasta and fastq formats. For paired-end reads, the assumption is that each read is next to its mate |
---|
107 | read. In other words, if the reads are indexed from 0, then reads 0 and 1 are paired, 2 and 3, 4 and 5, etc. |
---|
108 | |
---|
109 | Supported file formats are:: |
---|
110 | |
---|
111 | fasta |
---|
112 | fastq |
---|
113 | fasta.gz |
---|
114 | fastq.gz |
---|
115 | eland |
---|
116 | gerald |
---|
117 | |
---|
118 | Read categories are:: |
---|
119 | |
---|
120 | short (default) |
---|
121 | shortPaired |
---|
122 | short2 (same as short, but for a separate insert-size library) |
---|
123 | shortPaired2 (see above) |
---|
124 | long (for Sanger, 454 or even reference sequences) |
---|
125 | longPaired |
---|
126 | |
---|
127 | </help> |
---|
128 | </tool> |
---|