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