1
|
1 <tool id="repeatexplorer2" name="RepeatExplorer2 clustering: " version="2.3.6" >
|
0
|
2 <stdio>
|
|
3 <regex match="lastdb: can't open file: NEAR" source="stderr" level="fatal" description="Version of last is too old, use ver 956 or higher\n" />
|
|
4 <regex match="Traceback" source="stderr" level="fatal" description="Unknown error" />
|
|
5 <regex match="error" source="stderr" level="fatal" description="Unknown error" />
|
|
6 <regex match="Warning" source="stderr" level="warning" description="Unknown error" />
|
|
7 <exit_code range="1:" level="fatal" description="Error" />
|
|
8 </stdio>
|
|
9 <description>Improved version or repeat discovery and characterization using graph based sequence clustering</description>
|
|
10 <requirements>
|
|
11 <requirement type="package" version="3.7">python</requirement>
|
|
12 <requirement type="package" version="0.9.1" >pyrserve</requirement>
|
1
|
13 <requirement type="package" version=">956" >last</requirement>
|
0
|
14 <requirement type="package">mafft</requirement>
|
|
15 <requirement type="package">imagemagick</requirement>
|
|
16 <requirement type="package">blast</requirement>
|
|
17 <requirement type="package">diamond</requirement>
|
|
18 <requirement type="package">blast-legacy</requirement>
|
|
19 <requirement type="package">r-igraph</requirement>
|
|
20 <requirement type="package">r-data.tree</requirement>
|
|
21 <requirement type="package">r-stringr</requirement>
|
|
22 <requirement type="package">r-r2html</requirement>
|
|
23 <requirement type="package">r-hwriter</requirement>
|
|
24 <requirement type="package">r-dt</requirement>
|
|
25 <requirement type="package">r-scales</requirement>
|
|
26 <requirement type="package">r-plotrix</requirement>
|
|
27 <requirement type="package">r-png</requirement>
|
|
28 <requirement type="package">r-plyr</requirement>
|
|
29 <requirement type="package">r-dplyr</requirement>
|
|
30 <requirement type="package">r-optparse</requirement>
|
|
31 <requirement type="package">r-dbi</requirement>
|
|
32 <requirement type="package">r-rsqlite</requirement>
|
|
33 <requirement type="package">r-rserve</requirement>
|
|
34 <requirement type="package">bioconductor-biostrings</requirement>
|
|
35 </requirements>
|
|
36 <command >
|
|
37 export PYTHONHASHSEED=0;
|
|
38 ${__tool_directory__}/seqclust --sample ${sample} --output_dir=tarean_output --logfile=${log} --cleanup $paired --taxon $taxon
|
|
39
|
|
40 #if $advanced_options.advanced:
|
|
41 --mincl $advanced_options.size_threshold $advanced_options.keep_names $advanced_options.automatic_filtering -D $advanced_options.blastx.options_blastx
|
|
42 --assembly_min $advanced_options.assembly_min_cluster_size
|
|
43
|
|
44 #if $advanced_options.comparative.options_comparative:
|
|
45 --prefix_length $advanced_options.comparative.prefix_length
|
|
46 #end if
|
|
47
|
|
48 #if $advanced_options.custom_library.options_custom_library:
|
|
49 -d $advanced_options.custom_library.library extra_database
|
|
50 #end if
|
|
51
|
|
52 #if $advanced_options.options.options:
|
|
53 -opt $advanced_options.options.options
|
|
54 #end if
|
|
55 #end if
|
|
56 ${FastaFile} >stdout.log 2> stderr.log ;
|
|
57 echo "STDOUT CONTENT:" >> ${log} ;
|
|
58 cat stdout.log >> ${log} ;
|
|
59 echo "STDERR CONTENT:" >> ${log};
|
|
60 cat stderr.log >> ${log} &&
|
|
61 cd tarean_output &&
|
|
62 zip -r ${ReportArchive}.zip * &&
|
|
63 mv ${ReportArchive}.zip ${ReportArchive} &&
|
|
64 cp index.html ${ReportFile} &&
|
|
65 mkdir ${ReportFile.files_path} &&
|
|
66 cp -r --parents libdir ${ReportFile.files_path} &&
|
|
67 cp -r --parents seqclust/clustering/superclusters ${ReportFile.files_path} &&
|
|
68 cp -r --parents seqclust/clustering/clusters ${ReportFile.files_path} &&
|
|
69 cp seqclust/clustering/hitsort.cls ${ReportFile.files_path}/seqclust/clustering/hitsort.cls &&
|
|
70 cp *.png ${ReportFile.files_path}/ &&
|
|
71 cp *.csv ${ReportFile.files_path}/ &&
|
|
72 cp *.html ${ReportFile.files_path}/ &&
|
|
73 cp *.css ${ReportFile.files_path}/ &&
|
|
74 cp *.fasta ${ReportFile.files_path}/ 2>>$log && rm -r ../tarean_output || :
|
|
75
|
|
76 </command>
|
|
77 <inputs>
|
|
78 <param name="FastaFile" label="NGS reads" type="data" format="fasta"
|
|
79 help="Input file must contain fasta-formatted NGS reads. If paired end reads are used, reads must be interlaced and all pairs must be complete. Example of input data format is provided in the help below. "/>
|
|
80 <param name="paired" type="boolean" truevalue="--paired" falsevalue="" checked="True" label="Paired-end reads" help="Check if you are using pair reads and input sequences contain both read mates and left mates alternate with their right mates" />
|
|
81
|
|
82 <param name="sample" label="Sample size" type="integer" value="500000" min="10000"/>
|
|
83 <param name="taxon" label="Select taxon and protein domain database version (REXdb)" type="select" help="Reference database of transposable element protein domains - REXdb - is used for annotation of repeats">
|
|
84 <option value="VIRIDIPLANTAE3.0" selected="true">Viridiplantae version 3.0 </option>
|
|
85 <option value="VIRIDIPLANTAE2.2" selected="true">Viridiplantae version 2.2</option>
|
|
86 <option value="METAZOA3.0" >Metazoa version 3.0</option>
|
|
87 <option value="METAZOA2.0" >Metazoa version 2.0</option>
|
|
88 <!-- Modify setting in config.py accordingly -->
|
|
89 </param>
|
|
90
|
|
91 <conditional name="advanced_options">
|
|
92 <param name="advanced" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Advanced options" />
|
|
93 <when value="false">
|
|
94 <!-- pass -->
|
|
95 </when>
|
|
96 <when value="true">
|
|
97 <conditional name="comparative">
|
|
98 <param name="options_comparative" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Perform comparative analysis" help="Use this options when you want to compare sequences multiple groups"/>
|
|
99 <when value="false">
|
|
100 <!-- do nothing here -->
|
|
101 </when>
|
|
102 <when value="true">
|
|
103 <param name="prefix_length" label="Group code length" type="integer" value="3" min="1" max="10" help="For comparative analysis, sequences are from individial groups distinguished by sample code which must be used as prefix for sequence name. See example below."/>
|
|
104 </when>
|
|
105 </conditional>
|
|
106
|
|
107 <conditional name="blastx">
|
|
108 <param name="options_blastx" type="select" label="Select parameters for protein domain search">
|
|
109 <option value="BLASTX_W2" selected="false">blastx with word size 2 (the most sensitive, slowest)</option>
|
|
110 <option value="BLASTX_W3" selected="true">blastx with word size 3 (default)</option>
|
|
111 <option value="DIAMOND" selected="false">diamond program (the least sensitive, fastest)</option>
|
|
112 </param>
|
|
113 </conditional>
|
|
114
|
|
115 <conditional name="options">
|
|
116 <param name="options" type="select" label="Similarity search options" help="Different similarity search parameters are used depending on the used input data to adjust search to differences in length and error rate">
|
|
117 <option value="ILLUMINA" selected="true">Illumina reads, read length 100nt or more </option>
|
|
118 <option value="ILLUMINA_SHORT" selected="false">Illumina reads, shorter than 100nt (Do not use reads shorter than 50nt!) </option>
|
|
119 <option value="ILLUMINA_DUST_OFF" selected="false">Illumina reads, no masking of low complexity repeats </option>
|
|
120 <option value="OXFORD_NANOPORE" selected="false">
|
|
121 Pseudo short reads simulated from Oxford Nanopore data (experimental feature)
|
|
122 </option>
|
|
123 </param>
|
|
124 </conditional>
|
|
125
|
|
126 <conditional name="custom_library">
|
|
127 <param name="options_custom_library" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Use custom repeat database"/>
|
|
128 <when value="false">
|
|
129 <!-- do nothing here -->
|
|
130 </when>
|
|
131 <when value="true">
|
|
132 <param name="library" format="fasta" type="data" label="Custom library of repeats" help="Library of repeats as DNA sequences in fasta format. The required format for IDs in a custom library is : '>reapeatname#class/subclass'"/>
|
|
133 </when>
|
|
134 </conditional>
|
|
135 <param name="size_threshold" label="Cluster size threshold for detailed analysis" type="float" value="0.01" min="0.0001" max="100" help ="Minimal size (as percentage of input reads) of the smallest cluster which is analyzed, cluster with less than 20 reads are not considered at all."/>
|
|
136 <param name="automatic_filtering" label="Perform automatic filtering of abundant satellite repeats" help="Automatic filtering tries to identify the most abundant tandem repeats and remove such sequences partially from analysis. Removal of abundant tandem repeat can enable to analyze higher proportion of other less abundant repeats." type="boolean" truevalue="--automatic_filtering" falsevalue="" checked="false"/>
|
|
137 <param name="keep_names" label="Keep original sequences names" type="boolean" truevalue="--keep_names" falsevalue="" checked="false" help="By default sequence are relabeled using integers. If you want to keep original names, use this option."/>
|
|
138 <param name="assembly_min_cluster_size" type="integer" label="min cluster size for assembly" value="5" min="2" max="100"/>
|
|
139 </when>
|
|
140 </conditional>
|
|
141
|
|
142 </inputs>
|
|
143 <outputs>
|
|
144 <data name="log" format="txt" label="RepeatExplorer2 - log file"/>
|
|
145 <data name="ReportArchive" format="zip" label="RepeatExplorer2 - Archive with HTML report from data ${FastaFile.hid}"/>
|
|
146 <data name="ReportFile" format="html" label="RepeatExplorer2 - HTML report from data ${FastaFile.hid}"/>
|
|
147 </outputs>
|
|
148
|
|
149 <help>
|
|
150 **HELP**
|
|
151
|
|
152 RepeatExplorer2 clustering is a computational pipeline for unsupervised
|
|
153 identification of repeats from unassembled sequence reads. The
|
|
154 pipeline uses low-pass whole genome sequence reads and performs graph-based
|
|
155 clustering. Resulting clusters, representing all types of repeats, are then
|
|
156 examined to identify and classify into repeats groups.
|
|
157
|
|
158 **Input data**
|
|
159
|
|
160 The analysis requires either **single** or **paired-end reads** generated
|
|
161 by whole genome shotgun sequencing provided as a single fasta-formatted file.
|
|
162 Generally, paired-end reads provide significantly better results than single
|
|
163 reads. Reads should be of uniform length (optimal size range is 100-200 nt) and
|
|
164 the number of analyzed reads should represent less than 1x genome equivalent
|
|
165 (genome coverage of 0.01 - 0.50 x is recommended). Reads should be
|
|
166 quality-filtered (recommended filtering : quality score >=10 over 95% of bases
|
|
167 and no Ns allowed) and only **complete read pairs** should be submitted for
|
|
168 analysis. When paired reads are used, input data must be **interlaced** format
|
|
169 as fasta file:
|
|
170
|
|
171 example of interlaced input format::
|
|
172
|
|
173 >0001_f
|
|
174 CGTAATATACATACTTGCTAGCTAGTTGGATGCATCCAACTTGCAAGCTAGTTTGATG
|
|
175 >0001_r
|
|
176 GATTTGACGGACACACTAACTAGCTAGTTGCATCTAAGCGGGCACACTAACTAACTAT
|
|
177 >0002_f
|
|
178 ACTCATTTGGACTTAACTTTGATAATAAAAACTTAAAAAGGTTTCTGCACATGAATCG
|
|
179 >0002_r
|
|
180 TATGTTGAAAAATTGAATTTCGGGACGAAACAGCGTCTATCGTCACGACATAGTGCTC
|
|
181 >0003_f
|
|
182 TGACATTTGTGAACGTTAATGTTCAACAAATCTTTCCAATGTCTTTTTATCTTATCAT
|
|
183 >0003_r
|
|
184 TATTGAAATACTGGACACAAATTGGAAATGAAACCTTGTGAGTTATTCAATTTATGTT
|
|
185 ...
|
|
186
|
|
187
|
|
188 **Comparative analysis**
|
|
189
|
|
190 For comparative analysis sequence names must contain code (prefix) for each group.
|
|
191 Prefix in sequences names must be of fixed length.
|
|
192
|
|
193 Example of labeling two groups with where **group code length** is 2 and is used to distinguish groups - AA and BB ::
|
|
194
|
|
195 >AA0001_f
|
|
196 CGTAATATACATACTTGCTAGCTAGTTGGATGCATCCAACTTGCAAGCTAGTTTGATG
|
|
197 >AA0001_r
|
|
198 GATTTGACGGACACACTAACTAGCTAGTTGCATCTAAGCGGGCACACTAACTAACTAT
|
|
199 >AA0002_f
|
|
200 ACTCATTTGGACTTAACTTTGATAATAAAAACTTAAAAAGGTTTCTGCACATGAATCG
|
|
201 >AA0002_r
|
|
202 TATGTTGAAAAATTGAATTTCGGGACGAAACAGCGTCTATCGTCACGACATAGTGCTC
|
|
203 >BB0001_f
|
|
204 TGACATTTGTGAACGTTAATGTTCAACAAATCTTTCCAATGTCTTTTTATCTTATCAT
|
|
205 >BB0001_r
|
|
206 TATTGAAATACTGGACACAAATTGGAAATGAAACCTTGTGAGTTATTCAATTTATGTT
|
|
207 >BB0002_f
|
|
208 TGACATTTGTGAACGTTAATGTTCAACAAATCTTTCCAATGTCTTTTTATCTTATCAT
|
|
209 >BB0002_r
|
|
210 TATTGAAATACTGGACACAAATTGGAAATGAAACCTTGTGAGTTATTCAATTTATGTT
|
|
211
|
|
212
|
|
213 To prepare quality filtered and interlaced input fasta file from fastq
|
|
214 files, use `Preprocessing of paired-reads`__ tool.
|
|
215
|
|
216 .. __: tool_runner?tool_id=paired_fastq_filtering
|
|
217
|
|
218
|
|
219 **Additional parameters**
|
|
220
|
|
221 **Sample size** defines how many reads should be used in calculation.
|
|
222 Default setting with 500,000 reads will enable detection of high copy
|
|
223 repeats within several hours of computation time. For higher
|
|
224 sensitivity the sample size can be set higher. Since sample size affects
|
|
225 the memory usage, this parameter may be automatically adjusted to lower
|
|
226 value during the run. Maximum sample size which can be processed depends on
|
|
227 the repetitiveness of analyzed genome.
|
|
228
|
|
229
|
|
230 **Select taxon and protein domain database version (REXdb)**. Classification
|
|
231 of transposable elements is based on the similarity to our reference database
|
|
232 of transposable element protein domains (**REXdb**). Standalone database for Viridiplantae species
|
|
233 can be obtained on `repeatexplorer.org`__. Classification
|
|
234 system used in REXdb is described in article `Systematic survey of plant
|
|
235 LTR-retrotransposons elucidates phylogenetic relationships of their
|
|
236 polyprotein domains and provides a reference for element classification`__
|
|
237 Database for Metazoa species is still under development so use it with caution.
|
|
238
|
|
239 .. __: http://repeatexplorer.org
|
|
240 .. __: https://doi.org/10.1186/s13100-018-0144-1
|
|
241
|
|
242 **Select parameters for protein domain search** REXdb is compared with s
|
|
243 equence clusters either using blastx or diamond aligner. Diamond program
|
|
244 is about three time faster than blastx with word size 3.
|
|
245
|
|
246 **Similarity search options** By default sequence reads are compared using
|
|
247 mgblast program. Default threshold is explicitly set to 90% sequence
|
|
248 similarity spanning at least 55% of the read length (in the case of reads
|
|
249 differing in length it applies to the longer one). Additionally, sequence
|
|
250 overlap must be at least 55 nt. If you select option for shorter reads
|
|
251 than 100 nt, minimum overlap 55 nt is not required.
|
|
252
|
|
253 By default,
|
|
254 mgblast search use DUST program to filter out
|
|
255 low-complexity sequences. If you want
|
|
256 to increase sensitivity of detection of satellites with shorter monomer
|
|
257 use option with '*no masking of low complexity repeats*'. Note that omitting
|
|
258 DUST filtering will significantly increase running times
|
|
259
|
|
260
|
|
261 **Automatic filtering of abundant satellite repeats** perform clustering on
|
|
262 smaller dataset of sequence reads to detect abundant high confidence
|
|
263 satellite repeats. If such satellites are detected, sequence reads derived
|
|
264 from these satellites are depleted from input dataset. This step enable more
|
|
265 sensitive detection of less abundant repeats as more reads can be used
|
|
266 in clustering step.
|
|
267
|
|
268 **Use custom repeat database**. This option allows users to perform similarity
|
|
269 comparison of identified repeats to their custom databases. The repeat class must
|
|
270 be encoded in FASTA headers of database entries in order to allow correct
|
|
271 parsing of similarity hits. Required format for custom database sequence name is: ::
|
|
272
|
|
273 >reapeatname#class/subclass
|
|
274
|
|
275
|
|
276 **Output**
|
|
277
|
|
278 List of clusters identified as putative satellite repeats, their genomic
|
|
279 abundance and various cluster characteristics.
|
|
280
|
|
281 Output includes a **HTML summary** with table listing of all analyzed
|
|
282 clusters. More detailed information about clusters is provided in
|
|
283 additional files and directories. All results are also provided as
|
|
284 downloadable **zip archive**. Additionally a **log file** reporting
|
|
285 the progress of the computational pipeline is provided.
|
|
286
|
|
287 </help>
|
|
288
|
|
289 </tool>
|