Mercurial > repos > petr-novak > dante
annotate dante.xml @ 24:df99812ded92 draft
"planemo upload commit a0a9b02c60a91942a271b8b35648c0b152fe1ebd-dirty"
author | petr-novak |
---|---|
date | Fri, 27 Jan 2023 08:15:31 +0000 |
parents | e2bbc79f0fac |
children | 74babe57d739 |
rev | line source |
---|---|
24
df99812ded92
"planemo upload commit a0a9b02c60a91942a271b8b35648c0b152fe1ebd-dirty"
petr-novak
parents:
23
diff
changeset
|
1 <tool id="dante" name="Domain based ANnotation of Transposable Elements - DANTE" version="1.1.5"> |
0 | 2 <description> Tool for annotation of transposable elements based on the similarity to conserved protein domains database. </description> |
3 <requirements> | |
24
df99812ded92
"planemo upload commit a0a9b02c60a91942a271b8b35648c0b152fe1ebd-dirty"
petr-novak
parents:
23
diff
changeset
|
4 <requirement type="package">dante=0.1.5</requirement> |
0 | 5 </requirements> |
15 | 6 <stdio> |
7 <regex match="Traceback" source="stderr" level="fatal" description="Unknown error" /> | |
8 <regex match="error" source="stderr" level="fatal" description="Unknown error" /> | |
9 </stdio> | |
10 <command> | |
11 #if str($input_type.input_type_selector) == "aln" | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
12 parse_aln.py -a $(input_sequences) -f sequences.fasta -p sequences.profile |
15 | 13 && |
14 INPUT_SEQUENCES="sequences.fasta" | |
15 #else | |
16 INPUT_SEQUENCES=$(input_sequences) | |
17 #end if | |
18 && | |
19 | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
20 dante --query \${INPUT_SEQUENCES} --domain_gff ${DomGff} |
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
21 --database $database |
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
22 --scoring_matrix ${scoring_matrix} |
24
df99812ded92
"planemo upload commit a0a9b02c60a91942a271b8b35648c0b152fe1ebd-dirty"
petr-novak
parents:
23
diff
changeset
|
23 --cpu \${GALAXY_SLOTS:-1} |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
24 dante_gff_output_filtering.py --dom_gff ${DomGff} |
22 | 25 --domains_prot_seq ${Domains_filtered} --domains_filtered ${DomGff_filtered} |
26 --output_dir . | |
27 --selected_dom All --th_identity 0.35 | |
28 --th_similarity 0.45 --th_length 0.8 | |
29 --interruptions 3 --max_len_proportion 1.2 | |
30 --element_type '' | |
15 | 31 |
32 #if str($input_type.input_type_selector) == "aln" | |
33 && | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
34 coverage2gff.py -p sequences.profile -g ${DomGff} |
15 | 35 #end if |
10 | 36 |
15 | 37 #if str($iterative) == "Yes" |
38 && | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
39 dante_gff_output_filtering.py --dom_gff ${DomGff} |
15 | 40 --domains_prot_seq domains_filtered.fasta --domains_filtered domains_filtered.gff |
41 --output_dir . | |
42 --selected_dom All --th_identity 0.35 | |
43 --th_similarity 0.45 --th_length 0.9 | |
44 --interruptions 1 --max_len_proportion 1.1 | |
45 --element_type '' | |
46 && | |
10 | 47 |
15 | 48 |
49 | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
50 fasta2database.py domains_filtered.fasta domains_filtered.db |
15 | 51 domains_filtered.class |
52 && | |
10 | 53 |
15 | 54 lastdb -p domains_filtered.db domains_filtered.db |
55 && | |
56 | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
57 dante.py --query \${INPUT_SEQUENCES} --domain_gff ${DomGff2} |
15 | 58 --protein_database domains_filtered.db |
59 --classification domains_filtered.class | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
60 --scoring_matrix BL80 |
15 | 61 |
10 | 62 |
15 | 63 #if str($input_type.input_type_selector) == "aln" |
64 && | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
65 coverage2gff.py -p sequences.profile -g ${DomGff2} |
15 | 66 #end if |
67 #end if | |
10 | 68 |
15 | 69 </command> |
70 <inputs> | |
0 | 71 |
15 | 72 <conditional name="input_type"> |
73 <param name="input_type_selector" type="select" label="Choose the type of sequence data"> | |
74 <option value="fasta" selected="true">Fasta</option> | |
75 <option value="aln">Aln file</option> | |
76 </param> | |
77 <when value="fasta"> | |
78 <param name="input_sequences" type="data" format="fasta" label="Sequences in fasta format"/> | |
79 </when> | |
80 <when value="aln"> | |
81 <param name="input_sequences" type="data" format="txt" label="Sequences in ALN format (extracted from RepeatExplorer)"/> | |
82 </when> | |
83 </conditional> | |
23
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
84 <param name="database" type="select" label="Select REXdb database"> |
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
85 <option value="Viridiplantae_v3.0" selected="true">Viridiplantae_v3.0</option> |
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
86 <option value="Metazoa_v3.1" selected="true">Metazoa_v3.1</option> |
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
87 <option value="Viridiplantae_v2.2" selected="true">Viridiplantae_v2.2</option> |
e2bbc79f0fac
"planemo upload commit baf4ca09569b1b709c37f2df712e778da05edaf9-dirty"
petr-novak
parents:
22
diff
changeset
|
88 <option value="Metazoa_v3.0" selected="true">Metazoa_v3.1</option> |
15 | 89 </param> |
90 <param name="scoring_matrix" type="select" label="Select scoring matrix"> | |
91 <option value="BL80" selected="true" >BLOSUM80</option> | |
92 <option value="BL62">BLOSUM62</option> | |
93 <option value="MIQS">MIQS</option> | |
94 </param> | |
0 | 95 |
15 | 96 <param name="iterative" type="select" label="Run iterative search" truevalue="true" valsevalue="false" |
97 help="Second iteration run search against database of proteins extracted from query. Second iteration can yield some extra hits in some cases."> | |
98 <option value="No" selected="true">No</option> | |
99 <option value="Yes">Yes</option> | |
100 </param> | |
101 </inputs> | |
0 | 102 |
15 | 103 <outputs> |
22 | 104 <data format="gff3" name="DomGff" label="DANTE on ${on_string}, full output" /> |
105 <data format="gff3" name="DomGff_filtered" label="DANTE on ${on_string}, filtered output" /> | |
106 <data format="fasta" name="Domains_filtered" label="DANTE on ${on_string}, protein domains, filtered output" /> | |
15 | 107 <data format="gff3" name="DomGff2" label="DANTE on ${on_string}: 2nd pass"> |
108 <filter>iterative == "Yes" </filter> | |
109 </data> | |
110 </outputs> | |
111 <tests> | |
112 <test> | |
113 <param name="input_type" value="fasta"/> | |
114 <param name="input_sequences" value="GEPY_test_long_1.fa"/> | |
115 <param name="db_type" value="Viridiplantae_v3.0"/> | |
116 <param name="scoring_matrix" value="BL80"/> | |
117 <param name="iterative" value="No"/> | |
118 <output name="DomGff" value="GEPY_test_long_1_output_unfiltered.gff3"/> | |
119 </test> | |
0 | 120 |
15 | 121 |
122 </tests> | |
0 | 123 |
124 | |
15 | 125 <help> |
0 | 126 |
15 | 127 |
22 | 128 |
15 | 129 |
130 **WHAT IT DOES** | |
131 | |
132 This tool uses external aligning programme `LAST`_ and RepeatExplorer database of TE protein domains(REXdb) (Viridiplantae and Metazoa) | |
133 | |
134 .. _LAST: http://last.cbrc.jp/ | |
135 | |
136 *Lastal* runs similarity search to find hits between query DNA sequence and our database of protein domains from all Viridiplantae repetitive elements. Hits with overlapping positions in the sequence (even through other hits) forms a cluster which represents one potential protein domain. Strand orientation is taken into consideration when forming the clusters which means each cluster is built from forward or reverse stranded hits exclusively. The clusters are subsequently processed separately; within one cluster positions are scanned base-by-base and classification strings are assigned for each of them based on the database sequences which were mapped on that place. These asigned classification strings consist of a domain type as well as class and lineage of the repetitive element where the database protein comes from. Different classification levels are separated by "|" character. Every hit is scored according to the scoring matrix used for DNA-protein alignment (BLOSUM80). For single position only the hits reaching certain percentage (80% by default) of the overall best score within the whole cluster are reported. One cluster of overlapping hits represents one domain region and is recorded as one line in the resulting GFF3 file. Regarding the classition strings assigned to one region (cluster) there are three situations that can occur: | |
0 | 137 |
15 | 138 1. There is a single classification string assigned to each position as well as classifications along all the positions in the region are mutually uniform, in this case domain's final classification is equivalent to this unique classification. |
139 2. There are multiple classification strings assigned to one cluster, i.e. one domain, which leads to classification to the common (less specific) level of all the strings | |
140 3. There is a conflict at the domain type level, domains are reported with slash (e.g. RT/INT) and the classification is in this case ambiguous | |
141 | |
142 **There are 2 outputs produced by this tool:** | |
143 | |
144 1. GFF3 file of all proteins domains built from all hits found by LAST. Domains are reported per line as regions (start - end) on the original DNA sequence including the seq ID, alignment score and strand orientation. The last "Attributes" column contains several semicolon-separated information related to annotation, repetitive classification, alignment and its quality. This file can undergo further filtering using *Protein Domain Filter* tool | |
0 | 145 |
15 | 146 - Attributes reported always: |
147 | |
148 Name | |
0 | 149 type of domain; if ambiguous reported with slash |
150 | |
15 | 151 Final_classification |
0 | 152 definite classification based on all partial classifications of Region_hits_classifications attribute or |
153 "Ambiguous_domain" when there is an ambiguous domain type | |
154 | |
15 | 155 Region_Hits_Classifications |
0 | 156 all hits classifications (comma separated) from a certain domain region that reach the set score threshold; in case of multiple annotations the square brackets indicate the number of bases having this particular classification |
15 | 157 |
158 - Attributes only reported in case of unambiguous domain type (all the attributes including quality information are related to the Best_Hit of the region): | |
159 | |
160 Best_hit | |
0 | 161 classification and position of the best alignment with the highest score within the cluster; in the square brackets is the percentage of the whole cluster range that this best hit covers |
162 | |
15 | 163 Best_Hit_DB_Pos |
0 | 164 showing which part of the original datatabase domain corresponding to the Best Hit was aligned on query DNA (e.g. **Best_Hit_DB_Pos=17:75of79** means the Best Hit reported in GFF represents region from 17th to 75th of total 79 aminoacids in the original domain from the database) |
165 | |
15 | 166 DB_Seq |
0 | 167 database protein sequence of the best hit mapped to the query DNA |
168 | |
15 | 169 Query_Seq |
0 | 170 alignment sequence of the query DNA for the best hit |
171 | |
15 | 172 Identity |
0 | 173 ratio of identical amino acids in alignment sequence to the length of alignment |
174 | |
15 | 175 Similarity |
0 | 176 ratio of alignment positions with positive score (according to the scoring matrix) to the length of alignment |
177 | |
15 | 178 Relat_Length |
0 | 179 ratio of gapless length of the aligned protein sequence to the whole length of the database protein |
180 | |
15 | 181 Relat_Interruptions |
0 | 182 number of the interruptions (frameshifts + stop codons) in aligned translated query sequence per each starting 100 AA |
183 | |
15 | 184 Hit_to_DB_Length |
0 | 185 proportion of alignment length to the original length of the protein domain from database |
15 | 186 |
187 | |
0 | 188 |
15 | 189 !NOTE: Tool can in average process 0.5 Gbps of the DNA sequence per day. This is only a rough estimate and it is highly dependent on input data (repetive elements occurence) as well as computing resources. Maximum running time of the tool is 7 days. |
0 | 190 |
15 | 191 </help> |
0 | 192 </tool> |
193 |