22
|
1 <!--Convert Matrix - developed by Jocelyn Brayet <jocelyn.brayet@curie.fr>
|
|
2 Copyright (C) 2015 Institut Curie
|
|
3
|
|
4 This program is free software: you can redistribute it and/or modify
|
|
5 it under the terms of the GNU General Public License as published by
|
|
6 the Free Software Foundation, either version 3 of the License, or
|
|
7 (at your option) any later version.
|
|
8
|
|
9 This program is distributed in the hope that it will be useful,
|
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 GNU General Public License for more details.
|
|
13
|
|
14 You should have received a copy of the GNU General Public License
|
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>.-->
|
|
16 <tool id="rsat_convert_matrix" name="RSAT Convert Matrix" version="1.0">
|
|
17 <description>Inter-conversions between various formats of PSSM</description>
|
|
18 <requirements>
|
38
|
19 <requirement type="package" version="0.6">python_suds</requirement>
|
22
|
20 </requirements>
|
|
21 <command interpreter="python">
|
|
22 convertMatrix_wrapper.py -matrix $matrixFile -outGalaxy $txtFile -server $server -input_form $input_format -output_form $output_format
|
|
23 #if $advanced_parameters.adv_param == "show":
|
|
24 #if $advanced_parameters.return_count_condition.return_count == "yes":
|
|
25 -return counts
|
|
26 -perm $advanced_parameters.return_count_condition.perm
|
|
27 #else:
|
|
28 -return $advanced_parameters.return_count_condition.return
|
|
29 #end if
|
|
30 -rc $advanced_parameters.rc
|
|
31 -decimals $advanced_parameters.decimals
|
|
32 #end if
|
|
33 </command>
|
|
34 <inputs>
|
|
35 <param name="server" type="select" label="RSAT server (if 'Time out' error, change server)" >
|
|
36 <option value="fr_ens" selected="true">RSAT Protists</option>
|
|
37 <option value="fr_mrs" >RSAT Fungis</option>
|
|
38 <option value="fr_ro" >RSAT Metazoa</option>
|
|
39 <option value="fr_mrs_2" >RSAT Teaching</option>
|
|
40 <option value="es" >RSAT Plants</option>
|
|
41 <option value="mx" >RSAT Prokaryotes</option>
|
|
42 </param>
|
|
43 <param name="matrixFile" type="data" format="txt" label="Matrix (or matrices) (TXT file)" />
|
|
44 <param name="input_format" type="select" label="Matrix input format">
|
|
45 <option value="tab" selected="true">tab</option>
|
|
46 <option value="alignace" >alignace</option>
|
|
47 <option value="assembly" >assembly</option>
|
|
48 <option value="cb" >cb</option>
|
|
49 <option value="clustal" >clustal</option>
|
|
50 <option value="consensus" >consensus</option>
|
|
51 <option value="feature" >feature</option>
|
|
52 <option value="gibbs" >gibbs</option>
|
|
53 <option value="infogibbs" >infogibbs</option>
|
|
54 <option value="meme" >meme</option>
|
|
55 <option value="motifsampler" >motifsampler</option>
|
|
56 <option value="transfac" >transfac</option>
|
|
57 <option value="jaspar" >jaspar</option>
|
|
58 </param>
|
|
59 <param name="output_format" type="select" label="Output format">
|
|
60 <option value="transfac" selected="true">transfac</option>
|
|
61 <option value="consensus" >consensus</option>
|
|
62 <option value="tab" >tab</option>
|
|
63 <option value="jaspar" >jaspar</option>
|
|
64 </param>
|
|
65 <conditional name="advanced_parameters" >
|
|
66 <param name="adv_param" type="select" label="Advanced Parameters" help="" >
|
|
67 <option value="hide" selected="true">Hide</option>
|
|
68 <option value="show">Show</option>
|
|
69 </param>
|
|
70 <when value="hide" />
|
|
71 <when value="show">
|
|
72 <conditional name="return_count_condition" >
|
|
73 <param name="return_count" type="select" label="Counts option in output field" help="" >
|
|
74 <option value="yes" selected="true">Yes</option>
|
|
75 <option value="no">No</option>
|
|
76 </param>
|
|
77 <when value="yes">
|
|
78 <param name="perm" type="integer" value="0" label="Permutations" help="" />
|
|
79 </when>
|
|
80 <when value="no">
|
|
81 <param name="return" type="select" display="checkboxes" multiple="True" label="Output fields">
|
|
82 <option value="consensus" selected="true">consensus</option>
|
|
83 <option value="parameters" selected="true">parameters</option>
|
|
84 <option value="info" >info</option>
|
|
85 <option value="frequencies" >frequencies</option>
|
|
86 <option value="logo" >logo</option>
|
|
87 <option value="margins" >margins</option>
|
|
88 <option value="profile" >profile</option>
|
|
89 <option value="sites" >sites</option>
|
|
90 <option value="wdistrib" >wdistrib</option>
|
|
91 <option value="weights" >weights</option>
|
|
92 <validator type="no_options" message="You must select at least one result type." />
|
|
93 </param>
|
|
94 </when>
|
|
95 </conditional>
|
|
96 <param name="rc" type="select" label="Compute reverse complement" help="" >
|
|
97 <option value="0" selected="true">No</option>
|
|
98 <option value="1">Yes</option>
|
|
99 </param>
|
|
100 <param name="decimals" type="select" label="Score decimals" help="" >
|
|
101 <option value="0" >0</option>
|
|
102 <option value="1" selected="true">1</option>
|
|
103 <option value="2">2</option>
|
|
104 </param>
|
|
105 </when>
|
|
106 </conditional>
|
|
107 </inputs>
|
|
108 <outputs>
|
|
109 <data format="txt" name="txtFile" label="RSAT output - convertMatrix results" />
|
|
110 </outputs>
|
|
111 <help>
|
|
112
|
|
113 **What it does**
|
|
114
|
|
115 .. class:: infomark
|
|
116
|
|
117 Convert different types of position-specific scoring matrices (PSSM), and calculate statistical parameters.
|
|
118
|
|
119 ------
|
|
120
|
|
121 *Example with jaspar matrix*::
|
|
122
|
|
123 >matrix1 matrix1
|
|
124 A [ 4 19 0 0 0 0 ]
|
|
125 C [ 16 0 20 0 0 0 ]
|
|
126 G [ 0 1 0 20 0 20 ]
|
|
127 T [ 0 0 0 0 20 0 ]
|
|
128
|
|
129 ------
|
|
130
|
|
131 *Results : tranfac matrix with output fields (consensus, parameters, frequencies and sites)*::
|
|
132
|
|
133 AC m1
|
|
134 XX
|
|
135 ID m1
|
|
136 XX
|
|
137 DE m1 m1; from JASPAR
|
|
138 P0 A C G T
|
|
139 1 4 16 0 0
|
|
140 2 19 0 1 0
|
|
141 3 0 20 0 0
|
|
142 4 0 0 20 0
|
|
143 5 0 0 0 20
|
|
144 6 0 0 20 0
|
|
145 XX
|
|
146 CC program: jaspar
|
|
147 CC matrix.nb: 1
|
|
148 CC min.prior: 0.25
|
|
149 CC alphabet.size: 4
|
|
150 CC max.bits: 2
|
|
151 CC total.information: 6.56407409450406
|
|
152 CC information.per.column: 1.09401234908401
|
|
153 CC max.possible.info.per.col: 1.38629436111989
|
|
154 CC consensus.strict: CACGTG
|
|
155 CC consensus.strict.rc: CACGTG
|
|
156 CC consensus.IUPAC: CACGTG
|
|
157 CC consensus.IUPAC.rc: CACGTG
|
|
158 CC consensus.regexp: CACGTG
|
|
159 CC consensus.regexp.rc: CACGTG
|
|
160 CC residues.content.crude.freq: a:0.1917|c:0.3000|g:0.3417|t:0.1667
|
|
161 CC G+C.content.crude.freq: 0.641666666666667
|
|
162 CC residues.content.corrected.freq: a:0.1944|c:0.2976|g:0.3373|t:0.1706
|
|
163 CC G+C.content.corrected.freq: 0.634920634920635
|
|
164 XX
|
|
165 //
|
|
166 </help>
|
|
167 <citations>
|
|
168 <citation type="bibtex">@article{Medina-Rivera22042015,
|
|
169 author = {Medina-Rivera, Alejandra and Defrance, Matthieu and Sand, Olivier and Herrmann, Carl and Castro-Mondragon, Jaime A. and Delerce, Jeremy and Jaeger, Sébastien and Blanchet, Christophe and Vincens, Pierre and Caron, Christophe and Staines, Daniel M. and Contreras-Moreira, Bruno and Artufel, Marie and Charbonnier-Khamvongsa, Lucie and Hernandez, Céline and Thieffry, Denis and Thomas-Chollier, Morgane and van Helden, Jacques},
|
|
170 title = {RSAT 2015: Regulatory Sequence Analysis Tools},
|
|
171 year = {2015},
|
|
172 doi = {10.1093/nar/gkv362},
|
|
173 URL = {http://nar.oxfordjournals.org/content/early/2015/04/21/nar.gkv362.abstract},
|
|
174 eprint = {http://nar.oxfordjournals.org/content/early/2015/04/21/nar.gkv362.full.pdf+html},
|
|
175 journal = {Nucleic Acids Research}
|
|
176 }</citation>
|
|
177 </citations>
|
|
178 </tool>
|