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