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