Mercurial > repos > abims-sbr > mutcount
comparison MutCount.xml @ 0:acc3674e515b draft default tip
planemo upload for repository htpps://github.com/abims-sbr/adaptearch commit 3c7982d775b6f3b472f6514d791edcb43cd258a1-dirty
author | abims-sbr |
---|---|
date | Fri, 01 Feb 2019 10:28:50 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:acc3674e515b |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <tool name="MutCount" id="mutcount" version="2.2.0"> | |
4 <description> | |
5 This tool proceeds to count codons, amino acids on each species of a set of species, and then proceeds to permutation tests. | |
6 </description> | |
7 | |
8 <macros> | |
9 <import>macros.xml</import> | |
10 </macros> | |
11 | |
12 <requirements> | |
13 <expand macro="python_required" /> | |
14 <requirement type="package" version="0.20.0">pandas</requirement> | |
15 <requirement type="package" version="1.12.0">numpy</requirement> | |
16 <requirement type="package" version="1.4.4">r-optparse</requirement> | |
17 </requirements> | |
18 | |
19 <command> | |
20 <![CDATA[ | |
21 | |
22 ln -s $__tool_directory__/scripts/functions.py . && | |
23 | |
24 #if str($method.method_run) == "concat" : | |
25 python '$__tool_directory__/scripts/S01a_codons_counting.py' ${method.concat_nuc} '$method.list_species' '$method.list_species_boot' $method.num_iter $method.num_sampled > ${log} | |
26 #end if | |
27 | |
28 #if str($method.method_run) == "separated" : | |
29 mkdir 01_input_files && | |
30 ln -s '$__tool_directory__/scripts/S03b_sign_test_binomial.R' . && | |
31 #for $input in $method.sep_file | |
32 ln -s '$input' '01_input_files/$input.element_identifier'; | |
33 #end for | |
34 | |
35 #if str($method.format_run)== "nucleic" : | |
36 python '$__tool_directory__/scripts/S01b_extract_variable_nuc.py' ${method.sps_list} && | |
37 #end if | |
38 | |
39 #if str($method.format_run)== "proteic" : | |
40 cp '$__tool_directory__/scripts/amino_acid_properties.csv' . && | |
41 python '$__tool_directory__/scripts/S01b_extract_variable_prot.py' ${method.sps_list} amino_acid_properties.csv && | |
42 #end if | |
43 | |
44 python '$__tool_directory__/scripts/S02b_extreme_2states.py' ${method.sps_gp1} ${method.sps_gp2} ${method.format_run} | |
45 #end if | |
46 | |
47 ]]> | |
48 </command> | |
49 | |
50 <inputs> | |
51 <conditional name="method"> | |
52 <param name="method_run" type="select" label="Which method do you want to use for this tool? "> | |
53 <option value="concat">Concatenated genes in DNA (concatenation from RAxML run)</option> | |
54 <option value="separated">Set of separated genes (from ORF_Search output "output zip containing files with CDS without indel")</option> | |
55 </param> | |
56 | |
57 <when value="concat"> | |
58 <param name="concat_nuc" type="data" format="fasta" label="Choose your fasta file in nucleic format" help="It must contain the concatenated file in NUCLEIC format from Phylogeny tool" /> | |
59 <param name="list_species" type="text" size="100" label="List of species for countings" help="List the species separated with a comma (for e.g Ap,As,Ct,Gt,Yu)" /> | |
60 <param name="list_species_boot" type="text" size="100" label="List of species (at least two) used for resampling" help="List the species separated with a comma (for e.g Ap,As,Ct,Gt,Yu)" /> | |
61 <param name="num_iter" type="integer" value="1000" min="0" label="Number of sampled codons" help="Sets the length (in codons) of the resampled sequences"/> | |
62 <param name="num_sampled" type="integer" value="1000" min="0" label="Number of iterations" help="Sets the number of resampled sequences"/> | |
63 </when> | |
64 | |
65 <when value="separated"> | |
66 <param name="format_run" type="select" label="Which format do you want to use for this tool (concatenation and RAxML run) ? "> | |
67 <option value="nucleic">Nucleic format</option> | |
68 <option value="proteic">Proteic format</option> | |
69 </param> | |
70 <param name="sep_file" type="data" format="fasta" multiple="true" label="Choose fasta files" help="Fasta files from ORF_search tool ; in nucleic or proteic, according to the format chosen above" /> | |
71 <param name="sps_list" type="text" size="100" label="Enter all the studied species" help="Enter all the species present in the set of fasta files (comma-separated abbreviated names)" /> | |
72 <param name="sps_gp1" type="text" size="100" label="Species for group one" help="Specify species (comma-separated abbreviated names) sharing an ecological condition"/> | |
73 <param name="sps_gp2" type="text" size="100" label="Species for group two" help="Specify species (comma-separated abbreviated names) sharing an other ecological condition"/> | |
74 </when> | |
75 </conditional> | |
76 </inputs> | |
77 | |
78 <outputs> | |
79 <!-- output concat --> | |
80 <data format="txt" name="log" label="MutCount_concat_log.output" > | |
81 <filter>(method['method_run']=='concat')</filter> | |
82 </data> | |
83 <data format="csv" name="codons_freqs" label="codons_freqs.csv" from_work_dir="codons_freqs.csv" > | |
84 <filter>(method['method_run']=='concat')</filter> | |
85 </data> | |
86 <data format="csv" name="aa_freqs" label="aa_freqs.csv" from_work_dir="aa_freqs.csv" > | |
87 <filter>(method['method_run']=='concat')</filter> | |
88 </data> | |
89 <data format="csv" name="aatypes_freqs" label="aatypes_freqs.csv" from_work_dir="aatypes_freqs.csv" > | |
90 <filter>(method['method_run']=='concat')</filter> | |
91 </data> | |
92 <data format="csv" name="gc_and_others_freqs" label="gc_and_others_freqs.csv" from_work_dir="gc_and_others_freqs.csv" > | |
93 <filter>(method['method_run']=='concat')</filter> | |
94 </data> | |
95 <data format="csv" name="codons_transitions_freqs" label="codons_transitions_freqs" from_work_dir="codons_transitions_freqs.csv" > | |
96 <filter>(method['method_run']=='concat')</filter> | |
97 </data> | |
98 <data format="csv" name="aa_transitions_freqs" label="aa_transitions_freqs.csv" from_work_dir="aa_transitions_freqs.csv" > | |
99 <filter>(method['method_run']=='concat')</filter> | |
100 </data> | |
101 <data format="csv" name="aatypes_transitions_freqs" label="aatypes_transitions.csv" from_work_dir="aatypes_transitions_freqs.csv" > | |
102 <filter>(method['method_run']=='concat')</filter> | |
103 </data> | |
104 | |
105 <!-- outputs separated - nucleic --> | |
106 <collection name="tables_nuc" type="list" label="counts_on_nucleotides"> | |
107 <discover_datasets pattern="__name_and_ext__" directory="02_tables_per_nucleotide" /> | |
108 <filter>(method['method_run']=='separated' and method['format_run']== 'nucleic')</filter> | |
109 </collection> | |
110 <collection name="tables_nuc_var" type="list" label="counts_on_nuc_variables"> | |
111 <discover_datasets pattern="__name_and_ext__" directory="02_tables_per_nuc_variable" /> | |
112 <filter>(method['method_run']=='separated' and method['format_run']== 'nucleic')</filter> | |
113 </collection> | |
114 <collection name="outputs_nuc" type="list" label="binomial_tests_on_nucleotides"> | |
115 <discover_datasets pattern="__name_and_ext__" directory="04_outputs_nucleotides" /> | |
116 <filter>(method['method_run']=='separated' and method['format_run']== 'nucleic')</filter> | |
117 </collection> | |
118 <collection name="outputs_nuc_var" type="list" label="binomial_tests_on_nuc_variables"> | |
119 <discover_datasets pattern="__name_and_ext__" directory="04_outputs_nuc_variables" /> | |
120 <filter>(method['method_run']=='separated' and method['format_run']== 'nucleic')</filter> | |
121 </collection> | |
122 | |
123 <!-- outputs separated - proteic --> | |
124 <collection name="tables_aa" type="list" label="counts_on_amino_acids"> | |
125 <discover_datasets pattern="__name_and_ext__" directory="02_tables_per_aa" /> | |
126 <filter>(method['method_run']=='separated' and method['format_run']== 'proteic')</filter> | |
127 </collection> | |
128 <collection name="tables_variables" type="list" label="counts_on_indices"> | |
129 <discover_datasets pattern="__name_and_ext__" directory="02_tables_per_aa_variable" /> | |
130 <filter>(method['method_run']=='separated' and method['format_run']== 'proteic')</filter> | |
131 </collection> | |
132 <collection name="outputs_aa" type="list" label="binomial_tests_on_amino_acids"> | |
133 <discover_datasets pattern="__name_and_ext__" directory="04_outputs_aa" /> | |
134 <filter>(method['method_run']=='separated' and method['format_run']== 'proteic')</filter> | |
135 </collection> | |
136 <collection name="outputs_variables" type="list" label="binomial_tests_on_indices"> | |
137 <discover_datasets pattern="__name_and_ext__" directory="04_outputs_aa_variables" /> | |
138 <filter>(method['method_run']=='separated' and method['format_run']== 'proteic')</filter> | |
139 </collection> | |
140 </outputs> | |
141 | |
142 <tests> | |
143 | |
144 <test> | |
145 <conditional name="method" > | |
146 <param name="method_run" value="concat" /> | |
147 <param name="concat_nuc" ftype="fasta" value="concatenation.fasta" /> | |
148 <param name="list_species" ftype="text" value="Ps,Pp,Pu,Ac,Ap,Pf,Pg,Ph,Pi" /> | |
149 <param name="list_species_boot" ftype="text" value="Ps,Pp,Pu,Pf" /> | |
150 <param name="num_iter" value="200" /> | |
151 <param name="num_sampled" value="200" /> | |
152 </conditional> | |
153 <output name="log" value="OUT_concat/MutCount_concat_log.output" lines_diff="2"/> | |
154 <output name="codons_freqs" value="OUT_concat/codons_freqs.csv" lines_diff="18"/> | |
155 <output name="aa_freqs" value="OUT_concat/aa_freqs.csv" lines_diff="18"/> | |
156 <output name="aatypes_freqs" value="OUT_concat/aatypes_freqs.csv" lines_diff="18"/> | |
157 <output name="gc_and_others_freqs" value="OUT_concat/gc_and_others_freqs.csv"/> | |
158 <output name="codons_transitions_freqs" value="OUT_concat/codons_transitions_freqs.csv" lines_diff="72"/> | |
159 <output name="aa_transitions_freqs" value="OUT_concat/aa_transitions_freqs.csv" lines_diff="72"/> | |
160 <output name="aatypes_transitions_freqs" value="OUT_concat/aatypes_transitions_freqs.csv" lines_diff="72"/> | |
161 </test> | |
162 | |
163 <test> | |
164 <conditional name="method" > | |
165 <param name="method_run" value="separated" /> | |
166 <param name="format_run" value="nucleic" /> | |
167 <param name="sep_file" ftype="fasta" value="sep_nuc/orthogroup_109_with_3_species.fasta,sep_nuc/orthogroup_113_with_4_species.fasta,sep_nuc/orthogroup_253_with_2_species.fasta,sep_nuc/orthogroup_283_with_2_species.fasta,sep_nuc/orthogroup_299_with_2_species.fasta,sep_nuc/orthogroup_301_with_4_species.fasta,sep_nuc/orthogroup_316_with_4_species.fasta,sep_nuc/orthogroup_335_with_4_species.fasta,sep_nuc/orthogroup_343_with_4_species.fasta,sep_nuc/orthogroup_368_with_4_species.fasta,sep_nuc/orthogroup_404_with_4_species.fasta,sep_nuc/orthogroup_442_with_4_species.fasta,sep_nuc/orthogroup_487_with_4_species.fasta,sep_nuc/orthogroup_508_with_4_species.fasta,sep_nuc/orthogroup_544_with_4_species.fasta,sep_nuc/orthogroup_546_with_4_species.fasta,sep_nuc/orthogroup_588_with_4_species.fasta,sep_nuc/orthogroup_623_with_4_species.fasta,sep_nuc/orthogroup_651_with_4_species.fasta,sep_nuc/orthogroup_660_with_4_species.fasta,sep_nuc/orthogroup_696_with_4_species.fasta,sep_nuc/orthogroup_707_with_4_species.fasta,sep_nuc/orthogroup_727_with_4_species.fasta,sep_nuc/orthogroup_761_with_4_species.fasta" /> | |
168 <param name="sps_list" value="Ha,Lf,Bs,Bj" /> | |
169 <param name="sps_gp1" value="Ha,Lf" /> | |
170 <param name="sps_gp2" value="Bs,Bj" /> | |
171 </conditional> | |
172 <output_collection name="tables_nuc" type="list" count="4"> | |
173 <element name="A" file="OUT_nuc/02_tables_per_nucleotide/A.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
174 <element name="C" file="OUT_nuc/02_tables_per_nucleotide/C.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
175 <element name="G" file="OUT_nuc/02_tables_per_nucleotide/G.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
176 <element name="T" file="OUT_nuc/02_tables_per_nucleotide/T.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
177 </output_collection> | |
178 <output_collection name="tables_nuc_var" type="list" count="8"> | |
179 <element name="DIFF_AT" file="OUT_nuc/02_tables_per_nuc_variable/DIFF_AT.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
180 <element name="DIFF_GC" file="OUT_nuc/02_tables_per_nuc_variable/DIFF_GC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
181 <!-- | |
182 <element name="GC_percent" file="OUT_nuc/02_tables_per_nuc_variable/_GC_percent.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
183 --> | |
184 <element name="PLI_AT" file="OUT_nuc/02_tables_per_nuc_variable/PLI_AT.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
185 <element name="PLI_AT_1000" file="OUT_nuc/02_tables_per_nuc_variable/PLI_AT_1000.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
186 <element name="PLI_GC" file="OUT_nuc/02_tables_per_nuc_variable/PLI_GC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
187 <element name="PLI_GC_1000" file="OUT_nuc/02_tables_per_nuc_variable/PLI_GC_1000.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
188 <element name="purine_percent" file="OUT_nuc/02_tables_per_nuc_variable/purine_percent.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
189 </output_collection> | |
190 <output_collection name="outputs_nuc" type="list" count="4"> | |
191 <element name="A" file="OUT_nuc/04_outputs_nucleotides/A.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
192 <element name="C" file="OUT_nuc/04_outputs_nucleotides/C.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
193 <element name="G" file="OUT_nuc/04_outputs_nucleotides/G.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
194 <element name="T" file="OUT_nuc/04_outputs_nucleotides/T.csv" ftype="csv" compare="diff" lines_diff="8" /> | |
195 </output_collection> | |
196 <output_collection name="outputs_nuc_var" type="list" count="8"> | |
197 <element name="DIFF_AT" file="OUT_nuc/04_outputs_nuc_variables/DIFF_AT.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
198 <element name="DIFF_GC" file="OUT_nuc/04_outputs_nuc_variables/DIFF_GC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
199 <!-- | |
200 <element name="GC_percent" file="OUT_nuc/04_outputs_nuc_variables/GC_percent.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
201 --> | |
202 <element name="PLI_AT" file="OUT_nuc/04_outputs_nuc_variables/PLI_AT.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
203 <element name="PLI_AT_1000" file="OUT_nuc/04_outputs_nuc_variables/PLI_AT_1000.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
204 <element name="PLI_GC" file="OUT_nuc/04_outputs_nuc_variables/PLI_GC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
205 <element name="PLI_GC_1000" file="OUT_nuc/04_outputs_nuc_variables/PLI_GC_1000.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
206 <element name="purine_percent" file="OUT_nuc/04_outputs_nuc_variables/purine_percent.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
207 </output_collection> | |
208 </test> | |
209 | |
210 <test> | |
211 <conditional name="method" > | |
212 <param name="method_run" value="separated" /> | |
213 <param name="format_run" value="proteic" /> | |
214 <param name="sep_file" ftype="fasta" value="sep_aa/locus_3sp_2.fasta,sep_aa/locus_3sp_7.fasta,sep_aa/locus_4sp_4.fasta,sep_aa/locus_4sp_6.fasta,sep_aa/locus_6sp_10.fasta,sep_aa/locus_6sp_11.fasta,sep_aa/locus_6sp_16.fasta,sep_aa/locus_6sp_18.fasta,sep_aa/locus_6sp_25.fasta,sep_aa/locus_6sp_27.fasta,sep_aa/locus_6sp_30.fasta,sep_aa/locus_6sp_32.fasta,sep_aa/locus_6sp_35.fasta,sep_aa/locus_6sp_38.fasta,sep_aa/locus_6sp_39.fasta,sep_aa/locus_6sp_40.fasta,sep_aa/locus_6sp_41.fasta,sep_aa/locus_6sp_46.fasta,sep_aa/locus_6sp_47.fasta,sep_aa/locus_6sp_50.fasta,sep_aa/locus_6sp_53.fasta,sep_aa/locus_6sp_57.fasta,sep_aa/locus_6sp_58.fasta,sep_aa/locus_6sp_60.fasta" /> | |
215 <param name="sps_list" value="Ps,Pp,Pf,Ac,Pg,Ap" /> | |
216 <param name="sps_gp1" value="Pp,Pg" /> | |
217 <param name="sps_gp2" value="Ap,Ps" /> | |
218 </conditional> | |
219 <output_collection name="tables_aa" type="list" count="20"> | |
220 <element name="A" file="OUT_aa/02_tables_per_aa/A.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
221 <element name="C" file="OUT_aa/02_tables_per_aa/C.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
222 <element name="D" file="OUT_aa/02_tables_per_aa/D.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
223 <element name="E" file="OUT_aa/02_tables_per_aa/E.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
224 <element name="F" file="OUT_aa/02_tables_per_aa/F.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
225 <element name="G" file="OUT_aa/02_tables_per_aa/G.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
226 <element name="H" file="OUT_aa/02_tables_per_aa/H.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
227 <element name="I" file="OUT_aa/02_tables_per_aa/I.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
228 <element name="K" file="OUT_aa/02_tables_per_aa/K.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
229 <element name="L" file="OUT_aa/02_tables_per_aa/L.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
230 <element name="M" file="OUT_aa/02_tables_per_aa/M.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
231 <element name="N" file="OUT_aa/02_tables_per_aa/N.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
232 <element name="P" file="OUT_aa/02_tables_per_aa/P.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
233 <element name="Q" file="OUT_aa/02_tables_per_aa/Q.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
234 <element name="R" file="OUT_aa/02_tables_per_aa/R.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
235 <element name="S" file="OUT_aa/02_tables_per_aa/S.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
236 <element name="T" file="OUT_aa/02_tables_per_aa/T.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
237 <element name="V" file="OUT_aa/02_tables_per_aa/V.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
238 <element name="W" file="OUT_aa/02_tables_per_aa/W.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
239 <element name="Y" file="OUT_aa/02_tables_per_aa/Y.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
240 </output_collection> | |
241 <output_collection name="tables_variables" type="list" count="26"> | |
242 | |
243 <element name="AC" file="OUT_aa/02_tables_per_aa_variable/AC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
244 <element name="APGC" file="OUT_aa/02_tables_per_aa_variable/APGC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
245 <element name="AVLIM" file="OUT_aa/02_tables_per_aa_variable/AVLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
246 <element name="AVLIMFYW" file="OUT_aa/02_tables_per_aa_variable/AVLIMFYW.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
247 <element name="DE" file="OUT_aa/02_tables_per_aa_variable/DE.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
248 <element name="DNQTSHA" file="OUT_aa/02_tables_per_aa_variable/DNQTSHA.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
249 <element name="EK" file="OUT_aa/02_tables_per_aa_variable/EK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
250 <element name="ERK" file="OUT_aa/02_tables_per_aa_variable/ERK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
251 <element name="FYMINK" file="OUT_aa/02_tables_per_aa_variable/FYMINK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
252 <element name="FYW" file="OUT_aa/02_tables_per_aa_variable/FYW.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
253 <element name="GARP" file="OUT_aa/02_tables_per_aa_variable/GARP.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
254 <element name="IVYWREL" file="OUT_aa/02_tables_per_aa_variable/IVYWREL.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
255 <element name="QH" file="OUT_aa/02_tables_per_aa_variable/QH.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
256 <element name="ratio_AC_VLIM" file="OUT_aa/02_tables_per_aa_variable/ratio_AC_VLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
257 <element name="ratio_APGC_VLIM" file="OUT_aa/02_tables_per_aa_variable/ratio_APGC_VLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
258 <element name="ratio_EK_QH" file="OUT_aa/02_tables_per_aa_variable/ratio_EK_QH.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
259 <element name="ratio_ERK_DNQTSHA" file="OUT_aa/02_tables_per_aa_variable/ratio_ERK_DNQTSHA.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
260 <element name="ratio_GARP_FYMINK" file="OUT_aa/02_tables_per_aa_variable/ratio_GARP_FYMINK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
261 <element name="RHK" file="OUT_aa/02_tables_per_aa_variable/RHK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
262 <element name="RHKDE" file="OUT_aa/02_tables_per_aa_variable/RHKDE.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
263 <element name="STNQ" file="OUT_aa/02_tables_per_aa_variable/STNQ.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
264 <!-- | |
265 <element name="total_hydratation" file="OUT_aa/02_tables_per_aa_variable/total_hydratation.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
266 --> | |
267 <element name="total_partial_specific_volume" file="OUT_aa/02_tables_per_aa_variable/total_partial_specific_volume.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
268 <element name="total_residue_volume" file="OUT_aa/02_tables_per_aa_variable/total_residue_volume.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
269 <element name="total_residue_weight" file="OUT_aa/02_tables_per_aa_variable/total_residue_weight.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
270 <element name="VLIM" file="OUT_aa/02_tables_per_aa_variable/VLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
271 </output_collection> | |
272 <output_collection name="outputs_aa" type="list" count="20"> | |
273 <element name="A" file="OUT_aa/04_outputs_aa/A.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
274 <element name="C" file="OUT_aa/04_outputs_aa/C.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
275 <element name="D" file="OUT_aa/04_outputs_aa/D.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
276 <element name="E" file="OUT_aa/04_outputs_aa/E.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
277 <element name="F" file="OUT_aa/04_outputs_aa/F.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
278 <element name="G" file="OUT_aa/04_outputs_aa/G.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
279 <element name="H" file="OUT_aa/04_outputs_aa/H.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
280 <element name="I" file="OUT_aa/04_outputs_aa/I.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
281 <element name="K" file="OUT_aa/04_outputs_aa/K.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
282 <element name="L" file="OUT_aa/04_outputs_aa/L.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
283 <element name="M" file="OUT_aa/04_outputs_aa/M.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
284 <element name="N" file="OUT_aa/04_outputs_aa/N.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
285 <element name="P" file="OUT_aa/04_outputs_aa/P.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
286 <element name="Q" file="OUT_aa/04_outputs_aa/Q.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
287 <element name="R" file="OUT_aa/04_outputs_aa/R.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
288 <element name="S" file="OUT_aa/04_outputs_aa/S.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
289 <element name="T" file="OUT_aa/04_outputs_aa/T.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
290 <element name="V" file="OUT_aa/04_outputs_aa/V.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
291 <element name="W" file="OUT_aa/04_outputs_aa/W.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
292 <element name="Y" file="OUT_aa/04_outputs_aa/Y.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
293 </output_collection> | |
294 <output_collection name="outputs_variables" type="list" count="26"> | |
295 <element name="AC" file="OUT_aa/04_outputs_aa_variables/AC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
296 <element name="APGC" file="OUT_aa/04_outputs_aa_variables/APGC.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
297 <element name="AVLIM" file="OUT_aa/04_outputs_aa_variables/AVLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
298 <element name="AVLIMFYW" file="OUT_aa/04_outputs_aa_variables/AVLIMFYW.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
299 <element name="DE" file="OUT_aa/04_outputs_aa_variables/DE.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
300 <element name="DNQTSHA" file="OUT_aa/04_outputs_aa_variables/DNQTSHA.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
301 <element name="EK" file="OUT_aa/04_outputs_aa_variables/EK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
302 <element name="ERK" file="OUT_aa/04_outputs_aa_variables/ERK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
303 <element name="FYMINK" file="OUT_aa/04_outputs_aa_variables/FYMINK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
304 <element name="FYW" file="OUT_aa/04_outputs_aa_variables/FYW.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
305 <element name="GARP" file="OUT_aa/04_outputs_aa_variables/GARP.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
306 <element name="IVYWREL" file="OUT_aa/04_outputs_aa_variables/IVYWREL.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
307 <element name="QH" file="OUT_aa/04_outputs_aa_variables/QH.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
308 <element name="ratio_AC_VLIM" file="OUT_aa/04_outputs_aa_variables/ratio_AC_VLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
309 <element name="ratio_APGC_VLIM" file="OUT_aa/04_outputs_aa_variables/ratio_APGC_VLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
310 <element name="ratio_EK_QH" file="OUT_aa/04_outputs_aa_variables/ratio_EK_QH.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
311 <element name="ratio_ERK_DNQTSHA" file="OUT_aa/04_outputs_aa_variables/ratio_ERK_DNQTSHA.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
312 <element name="ratio_GARP_FYMINK" file="OUT_aa/04_outputs_aa_variables/ratio_GARP_FYMINK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
313 <element name="RHK" file="OUT_aa/04_outputs_aa_variables/RHK.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
314 <element name="RHKDE" file="OUT_aa/04_outputs_aa_variables/RHKDE.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
315 <element name="STNQ" file="OUT_aa/04_outputs_aa_variables/STNQ.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
316 <!-- | |
317 <element name="total_hydratation" file="OUT_aa/04_outputs_aa_variables/total_hydratation.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
318 --> | |
319 <element name="total_partial_specific_volume" file="OUT_aa/04_outputs_aa_variables/total_partial_specific_volume.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
320 <element name="total_residue_volume" file="OUT_aa/04_outputs_aa_variables/total_residue_volume.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
321 <element name="total_residue_weight" file="OUT_aa/04_outputs_aa_variables/total_residue_weight.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
322 <element name="VLIM" file="OUT_aa/04_outputs_aa_variables/VLIM.csv" ftype="csv" compare="diff" lines_diff="6" /> | |
323 </output_collection> | |
324 </test> | |
325 | |
326 </tests> | |
327 | |
328 <help> | |
329 | |
330 @HELP_AUTHORS@ | |
331 | |
332 <![CDATA[ | |
333 | |
334 **Description** | |
335 | |
336 *1-Separated mode* | |
337 | |
338 Input files are all the orthogroups computed by the AdaptSearch suite; Counts and test are computed on each group separatly. This mode counts occurrences of amino-acids or nucleic acids, according to the sequences type, in each distinct orthogroup. Then, two subgroups of species are set by the user : | |
339 | |
340 - A first group, constitued by species having something in common (an ecological trait, an ecological niche, a particular environmental adaptation) | |
341 - A second group, constitued by species sharing the opposite trait (for example, the user can have a first subgroup made with species adapted to high temperatures and a second group made with species adapted to cold temperatures) | |
342 | |
343 Within the groups, the program checks wether the occurrences of each element (amino-acid, nucleic acid, thermostability indice, GC content …) is higher of lower between one species and all the species of the opposite group. Binomial tests are then performed of these counts. | |
344 | |
345 *2-Concatenated mode* | |
346 | |
347 The input file is the super-alignment obtained by concatenation of all the orthogroups computed by the AdaptSearch suite. This script counts the number of codons, amino acids, and types of amino acids in sequences, as well as the mutation bias from one item to another between 2 sequences. Counts are then compared to empirical p-values, obtained from bootstrapped sequences obtained from a subset of sequences. | |
348 | |
349 In the output files, the pvalues indicate the position of the observed data in a distribution of empirical counts obtained from a resampling of the data. Values above 0.95 indicate a significantly higher count, values under 0.05 a significantly lower count. | |
350 | |
351 The script resamples random pairs of aligned codon to determine what counts can be expected under the hypothesis of an homogenous dataset. | |
352 Counts are performed on each generated random alignement, thousands of alignments allow to draw a gaussian distribution of the counts. | |
353 Then the script simply checks whether the observed data are within the 5% lowest or 5% highest values of the distribution. | |
354 | |
355 -------- | |
356 | |
357 .. class:: infomark | |
358 | |
359 **Input files** | |
360 | |
361 If you choose the concatenated method, the input file is the concatenated genes fasta file (in nucleic format) from a previous run of the toolConcatPhyl. | |
362 | |
363 If you choose the separated method, there are two input files : | |
364 - A dataset collection containing output files from the CDS_Search tool, the one without indels. These files must be in nucleic or proteic format according to the format chosen along with the method. | |
365 - The concatenated genes fasta file from ConcatPhyl, only used here to retrieve species name. | |
366 | |
367 -------- | |
368 | |
369 **Parameters** | |
370 | |
371 There are parameters only for the "Concatenated" method : | |
372 | |
373 - The list of species for **countings**, separated by commas and without space (e.g : sp1,sp2,sp3,sp4). You can run the tool on subgroup of species, not only on the total number of species present in the previous tools. | |
374 | |
375 - The list of species for **resampling**, separated by commas and without space (e.g : sp1,sp2,sp3,sp4). You can run the tool on subgroup of species (at least two species), not only on the total number of species present in the previous tools. | |
376 | |
377 - The number of iterations : the number of alignments that will be generated (effect on the resolution of the gaussian distribution). Shouldn't be lower than 1000 to have a relatively smooth gaussian distribution. | |
378 | |
379 - The number of sampled codons : the number of pairs of codons in each generated alignments (effect on the robustness on the counts performed on this alignement). Shouldn't be lower than 1000 to detect codons with relatively low occurence (<1%). | |
380 | |
381 -------- | |
382 | |
383 **Outputs** | |
384 | |
385 Many outputs in .csv format , varying according to the chosen method and format (separated, nucleic ...) | |
386 - When method = concat : 6 .csv outputs : countings of codons, amino acids, amino acids types, and transitions from amino acid to amino acid and from amino acid type to amino acid type. | |
387 - When method = separated and format = nucleic : 4 collections with several .csv files : counts tables and binomial sign tests results for nucleotides and various indices (GC and purine percent ...) . | |
388 - When method = separated and format = proteic : 4 collections with several .csv files : counts tables and binomial sign tests results for amino-acids and various indices (thermophilic indices, hydratation, partial specific volume...). | |
389 --------- | |
390 | |
391 **The AdaptSearch Pipeline** | |
392 | |
393 .. image:: adaptsearch_picture_helps.png | |
394 | |
395 --------- | |
396 | |
397 Changelog | |
398 --------- | |
399 | |
400 **Version 2.2.0 - 10/07/2018** | |
401 - Updated separated mode : added a binomial sign test | |
402 | |
403 **Version 2.1 - 26/02/2017** | |
404 - Fully re-written the concat method : fixed mistakes + cleaner code | |
405 - Splitted output of concatenated method in several csv files. | |
406 - Bug corrected in output files of separated method. | |
407 | |
408 **Version 2.0 - 12/07/2017** | |
409 | |
410 - NEW: Replaced the zip between tools by Dataset Collection | |
411 - More functional tests | |
412 | |
413 **Version 1.0 - 14/04/2017** | |
414 | |
415 - Added the tools to the suite | |
416 - Added a functional test with planemo | |
417 - Planemo test using conda dependencies for python | |
418 - Scripts renamed + symlinks to the directory 'scripts' | |
419 | |
420 ]]> | |
421 | |
422 </help> | |
423 | |
424 </tool> |