3
|
1 <tool id="tarean" name="Tandem Repeat Analyzer" version="2.3.8" >
|
0
|
2 <stdio>
|
|
3 <regex match="Traceback" source="stderr" level="fatal" description="Unknown error" />
|
|
4 <regex match="error" source="stderr" level="fatal" description="Unknown error" />
|
|
5 <regex match="warning" source="stderr" level="warning" description="Unknown warning" />
|
|
6 <exit_code range="1:" level="fatal" description="Error" />
|
|
7 </stdio>
|
|
8 <description>Identification of genomic tandem repeats from NGS data</description>
|
|
9 <requirements>
|
|
10 <requirement type="package">imagemagick</requirement>
|
|
11 <requirement type="package">mafft</requirement>
|
|
12 <requirement type="package">blast</requirement>
|
3
|
13 <requirement type="package" version="0.9.29">diamond</requirement>
|
0
|
14 <requirement type="package">blast-legacy</requirement>
|
|
15 <requirement type="package">r-igraph</requirement>
|
|
16 <requirement type="package">r-data.tree</requirement>
|
|
17 <requirement type="package">r-stringr</requirement>
|
|
18 <requirement type="package">r-r2html</requirement>
|
|
19 <requirement type="package">r-hwriter</requirement>
|
|
20 <requirement type="package">r-dt</requirement>
|
|
21 <requirement type="package">r-scales</requirement>
|
|
22 <requirement type="package">r-plotrix</requirement>
|
|
23 <requirement type="package">r-png</requirement>
|
|
24 <requirement type="package">r-plyr</requirement>
|
|
25 <requirement type="package">r-dplyr</requirement>
|
|
26 <requirement type="package">r-optparse</requirement>
|
|
27 <requirement type="package">r-dbi</requirement>
|
|
28 <requirement type="package">r-rsqlite</requirement>
|
|
29 <requirement type="package">r-rserve</requirement>
|
|
30 <requirement type="package">bioconductor-biostrings</requirement>
|
3
|
31 <requirement type="package" version="2.3.8">repex_tarean</requirement>
|
0
|
32 <requirement type="set_environment">REPEX</requirement>
|
|
33 <requirement type="set_environment">REPEX_VERSION</requirement>
|
|
34 <requirement type="package" version="0.9.1">pyrserve</requirement>
|
|
35 </requirements>
|
|
36 <command detect_errors="exit_code">
|
|
37 export PYTHONHASHSEED=0;
|
3
|
38 \${REPEX}/seqclust --paired --sample ${read_sampling.sample} --output_dir=tarean_output --logfile=${log} --cleanup --tarean_mode
|
0
|
39 #if $advanced_options.advanced:
|
|
40 --mincl $advanced_options.size_threshold $advanced_options.keep_names $advanced_options.automatic_filtering -M $advanced_options.merging
|
|
41 #if $advanced_options.custom_library.options_custom_library :
|
|
42 -d $advanced_options.custom_library.library extra_database
|
|
43 #end if
|
|
44 #if $advanced_options.options.options:
|
|
45 -opt $advanced_options.options.options
|
|
46 #end if
|
|
47 #else:
|
|
48 -M 0.2
|
|
49
|
|
50 #end if
|
|
51 ${FastaFile} >stdout.log 2> stderr.log ;
|
|
52 echo "STDOUT CONTENT:" >> ${log} ;
|
|
53 cat stdout.log >> ${log} ;
|
|
54 echo "STDERR CONTENT:" >> ${log} ;
|
|
55 cat stderr.log >> ${log} &&
|
|
56 \${REPEX}/stderr_filter.py stderr.log &&
|
|
57 cd tarean_output &&
|
|
58 zip -r ${ReportArchive}.zip * &&
|
|
59 mv ${ReportArchive}.zip ${ReportArchive} &&
|
|
60 cp index.html ${ReportFile} &&
|
|
61 mkdir ${ReportFile.files_path} &&
|
|
62 cp -r --parents libdir ${ReportFile.files_path} &&
|
|
63 cp -r --parents seqclust/clustering/superclusters ${ReportFile.files_path} &&
|
|
64 cp -r --parents seqclust/clustering/clusters ${ReportFile.files_path} &&
|
|
65 cp seqclust/clustering/hitsort.cls ${ReportFile.files_path}/seqclust/clustering/hitsort.cls &&
|
|
66 cp *.png ${ReportFile.files_path}/ &&
|
|
67 cp *.csv ${ReportFile.files_path}/ &&
|
|
68 cp *.html ${ReportFile.files_path}/ &&
|
|
69 cp *.css ${ReportFile.files_path}/ &&
|
|
70 cp *.fasta ${ReportFile.files_path}/ 2>>$log && rm -r ../tarean_output || :
|
|
71
|
|
72
|
|
73 </command>
|
|
74
|
|
75 <inputs>
|
2
|
76 <param name="FastaFile" label="Paired-end Illumina reads" type="data" format="fasta"
|
|
77 help="Input file must contain FASTA-formatted interlaced read pairs from paired-end sequencing. All pairs must be complete. Example of the input data format is provided in the help below."/>
|
3
|
78
|
|
79 <conditional name="read_sampling">
|
|
80 <param name="do_sampling" type="boolean" truevalue="true" falsevalue="false" checked="True" label="Use maximum processable sequence reads" />
|
|
81 <when value="true">
|
|
82 <!-- pass -->
|
|
83 <param name="sample" label="Sample size" hidden="True" type="integer" value="0" help="Number of sequence reads for clustering"/>
|
|
84 </when>
|
|
85 <when value="false">
|
|
86 <param name="sample" label="Sample size" type="integer" value="500000" min="10000" help="Number of reads for clustering"/>
|
|
87 </when>
|
|
88 </conditional>
|
|
89
|
0
|
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 <param name="merging" type="boolean" truevalue="0.2" falsevalue="0" checked="True" label="Perform cluster merging" help="By default, clusters connected through paired-end reads are merged"/>
|
|
98 <conditional name="custom_library">
|
|
99 <param name="options_custom_library" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Use custom repeat database"/>
|
|
100 <when value="false">
|
|
101 <!-- do nothing here -->
|
|
102 </when>
|
|
103 <when value="true">
|
|
104 <param name="library" format="fasta" type="data" label="Use custom repeat database" help="Perform additional similarity search to user-provided repeat database. The database should contain FASTA-formatted DNA sequences with headers (sequence names) in the format: '>reapeatname#class/subclass'"/>
|
|
105 </when>
|
|
106 </conditional>
|
2
|
107 <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."/>
|
0
|
108 <param name="automatic_filtering" label="Perform automatic filtering of abundant satellite repeats" type="boolean" truevalue="--automatic_filtering" falsevalue="" checked="false"/>
|
2
|
109 <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 if you want to keep original names."/>
|
0
|
110 <conditional name="options">
|
2
|
111 <param name="options" type="select" label="Similarity search options" help="Different similarity search parameters are used depending on the input data to adjust search to differences in read length and error rate">
|
3
|
112 <option value="ILLUMINA" selected="true">Illumina reads, optimized for read length 100 nt or more (parameters: mgblast, min PID 90, W18) </option>
|
|
113 <option value="ILLUMINA_DUST_OFF" selected="false">Illumina reads, no masking of low complexity repeats (parameters: mgblast, min PID 90, -W18, -F F) </option>
|
|
114 <option value="ILLUMINA_SENSITIVE_MGBLAST" selected="false">Illumina reads, sensitive search (parameters: mgblast, min PID 80, -W8) slow, experimental feature!</option>
|
|
115 <option value="ILLUMINA_SENSITIVE_BLASTPLUS" selected="false">Illumina reads, more sensitive search (parameters: blastn, min PID 80, -W6) extremely slow, experimental feature!</option>
|
0
|
116 </param>
|
|
117 </conditional>
|
|
118 </when>
|
|
119 </conditional>
|
|
120
|
|
121 <conditional name="queue_definition">
|
|
122 <param name="queue_select" type="select" label="Select queue">
|
2
|
123 <option value="basic_fast_queue">basic (max runtime 2 days, 4 GB RAM)</option>
|
|
124 <option value="long_slow_queue">long (max runtime 2 weeks, 64 GB RAM)</option>
|
|
125 <option value="extra_long_slow_queue">extra long (max runtime 4 weeks, 64 GB RAM)</option>
|
0
|
126 </param>
|
|
127 <when value="basic_fast_queue">
|
|
128 <param name="queue_specification" type="text" label="Modify parameters (optional)"
|
|
129 value="-l select=1:ncpus=10:mem=32gb:scratch_local=50gb -l walltime=48:00:00 -q elixirre@pbs.elixir-czech.cz -v TAREAN_MAX_MEM=4000000,TAREAN_CPU=4" />
|
|
130 </when>
|
|
131
|
|
132 <when value="long_slow_queue">
|
|
133 <param name="queue_specification" type="text" label="Modify parameters (optional)"
|
|
134 value="-l select=1:ncpus=16:mem=112gb:scratch_local=50gb -l walltime=336:00:00 -q elixirre@pbs.elixir-czech.cz -v TAREAN_MAX_MEM=64000000,TAREAN_CPU=15" />
|
|
135 </when>
|
|
136 <when value="extra_long_slow_queue">
|
|
137 <param name="queue_specification" type="text" label="Modify parameters (optional)"
|
|
138 value="-l select=1:ncpus=16:mem=112gb:scratch_local=50gb -l walltime=720:00:00 -q elixirre@pbs.elixir-czech.cz -v TAREAN_MAX_MEM=64000000,TAREAN_CPU=15" />
|
|
139 </when>
|
|
140 </conditional>
|
|
141
|
|
142
|
|
143
|
|
144 </inputs>
|
|
145 <outputs>
|
|
146 <data name="log" format="txt" label="TAREAN log file"/>
|
|
147 <data name="ReportArchive" format="zip" label="TAREAN Archive with HTML report from data ${FastaFile.hid}"/>
|
|
148 <data name="ReportFile" format="html" label="TAREAN HTML report from data ${FastaFile.hid}"/>
|
|
149 </outputs>
|
|
150
|
|
151 <help>
|
|
152 **HELP**
|
|
153
|
|
154 TAREAN - TAndem REpeat ANalyzer is a computational pipeline for
|
|
155 **unsupervised identification of satellite repeats** from unassembled
|
|
156 sequence reads. The pipeline uses low-pass paired-end whole genome
|
|
157 sequence reads and performs graph-based clustering. The resulting
|
|
158 clusters, representing all types of repeats present in the genome, are
|
|
159 then examined to identify those containing circular structures indicative
|
|
160 of tandem repeats. A poster summarizing TAREAN principles and
|
|
161 implementation can be found `here.`__
|
|
162
|
|
163
|
|
164 .. __: http://w3lamc.umbr.cas.cz/lamc/?page_id=312
|
|
165
|
|
166 **Input data**
|
|
167
|
|
168
|
|
169 The analysis requires **paired-end reads** generated by whole genome
|
|
170 shotgun sequencing. The data should be provided as a single input file in
|
|
171 fasta format with the reads interlaced (see example below). All the pairs
|
|
172 must be complete, i.e. both "forward" and "reverse" sequence reads must be
|
|
173 present. The reads should all be trimmed to the same length. The optimal
|
|
174 size range is between 100 and 200 nucleotides. The number of reads to be
|
|
175 analyzed should not exceed 1x coverage of the genome. Genome coverage
|
|
176 between 0.01 and 0.5x is recommended. The reads should be filtered for
|
|
177 quality. The recommended quality filtering is as follows: each read should
|
|
178 have a quality score >=10 for 95% of the bases, i.e. if your reads are 100
|
|
179 base pairs long, then a read only passes this quality threshold if 95
|
|
180 bases have a quality of 10 or higher. Additionally, any reads containing
|
|
181 indeterminate base pairs (indicated as N in the reads) should be removed.
|
|
182 Finally, if either one of the reads in a pair fails to meet the
|
|
183 aforementioned thresholds, **both** sequences should be removed.
|
|
184 example of interlaced input format::
|
|
185
|
|
186 >0001_f
|
|
187 CGTAATATACATACTTGCTAGCTAGTTGGATGCATCCAACTTGCAAGCTAGTTTGATG
|
|
188 >0001_r
|
|
189 GATTTGACGGACACACTAACTAGCTAGTTGCATCTAAGCGGGCACACTAACTAACTAT
|
|
190 >0002_f
|
|
191 ACTCATTTGGACTTAACTTTGATAATAAAAACTTAAAAAGGTTTCTGCACATGAATCG
|
|
192 >0002_r
|
|
193 TATGTTGAAAAATTGAATTTCGGGACGAAACAGCGTCTATCGTCACGACATAGTGCTC
|
|
194 >0003_f
|
|
195 TGACATTTGTGAACGTTAATGTTCAACAAATCTTTCCAATGTCTTTTTATCTTATCAT
|
|
196 >0003_r
|
|
197 TATTGAAATACTGGACACAAATTGGAAATGAAACCTTGTGAGTTATTCAATTTATGTT
|
|
198 ...
|
|
199
|
|
200
|
|
201 To perform the quality filtering on your fastQ formatted data as described
|
|
202 above, and to interlace your paired-end sequence reads,
|
|
203 please use the `Preprocessing of paired-reads`__ tool.
|
|
204
|
|
205 .. __: tool_runner?tool_id=paired_fastq_filtering
|
|
206
|
|
207
|
|
208 **Additional parameters**
|
|
209
|
|
210 **Sample size** defines how many reads will be used during the computation.
|
|
211 The default setting of 500,000 reads will enable detection of high copy
|
|
212 number satellites within several hours. For higher
|
|
213 sensitivity the sample size can be increased. Since the sample size affects
|
|
214 memory usage, this parameter may be automatically adjusted to a lower value
|
|
215 during the run. The maximum sample size which can be processed depends on the
|
|
216 repetitiveness of the analyzed genome. This significantly limits the number of reads
|
|
217 that can be analyzed with the TAREAN pipeline.
|
|
218
|
|
219 **Perform cluster merging**. Families of repetitive elements are
|
|
220 frequently split into multiple clusters rather than being represented as a
|
|
221 single one. If you do not want to merge clusters based on the presence
|
|
222 of broken read pairs, disable this option.
|
|
223
|
|
224 **Use custom repeat database**. This option allows users to perform similarity
|
|
225 comparison of identified repeats to their custom databases. The repeat class should
|
|
226 be encoded in FASTA headers of database entries in order to allow correct
|
|
227 parsing of similarity hits.
|
|
228
|
|
229 **Similarity search options** By default sequence reads are compared using
|
|
230 mgblast program. Default threshold is explicitly set to 90% sequence
|
|
231 similarity spanning at least 55% of the read length (in the case of reads
|
|
232 differing in length it applies to the longer one). Additionally, sequence
|
|
233 overlap must be at least 55 nt. If you select option for shorter reads
|
|
234 than 100 nt, minimum overlap 55 nt is not required.
|
|
235
|
|
236 By default,
|
|
237 mgblast search use DUST program to filter out
|
|
238 low-complexity sequences. If you want
|
|
239 to increase sensitivity of detection of satellites with shorter monomer
|
|
240 use option with '*no masking of low complexity repeats*'. Note that omitting
|
|
241 DUST filtering will significantly increase running times
|
|
242
|
|
243 **Output**
|
|
244
|
|
245 A list of clusters identified as putative satellite repeats, their genomic
|
|
246 abundance and various cluster characteristics are provided. Length and
|
|
247 consensus sequences of reconstructed monomers are also shown and
|
|
248 accompanied by a detailed output from kmer-based reconstruction including
|
|
249 sequences and sequence logos of alternative variants of monomer sequences.
|
|
250
|
|
251 The output includes an **HTML summary** with a table listing all analyzed
|
|
252 clusters. More detailed information about clusters is provided in
|
|
253 additional files and directories. All results are also provided as a
|
|
254 downloadable **zip archive**. Since read clustering results in
|
|
255 thousands of clusters, the search for satellite repeats is limited to
|
|
256 a subset of the largest ones corresponding to the most abundant genomic
|
|
257 repeats. The default setting of the pipeline is to analyze all clusters containing at least
|
|
258 0.01% of the input reads. Besides the satellite repeats, three other
|
|
259 groups of clusters are reported in the output (1) LTR-retrotransposons,
|
|
260 (2) 45S and 5S rDNA and (3) all remaining clusters passing the size
|
|
261 threshold. As (1) and (2) contain sequences with circular
|
|
262 graphs, their consensus is calculated in the same way as for satellite
|
|
263 repeats. Additionally a **log file** reporting the progress of the
|
|
264 computational pipeline is provided.
|
|
265
|
|
266
|
|
267 </help>
|
|
268
|
|
269 </tool>
|