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