Skip to content

Commit ca7c5d3

Browse files
committed
Updating Galaxy wrapper
1 parent 502f964 commit ca7c5d3

File tree

1 file changed

+97
-43
lines changed

1 file changed

+97
-43
lines changed

galaxy/honto.xml

Lines changed: 97 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,14 @@
5050
#end if
5151
#end if
5252
53-
#if $heatmap.customize == "true":
54-
--cmap $heatmap.cmap
55-
--vmin $heatmap.vmin
56-
--vmax $heatmap.vmax
57-
--center $heatmap.center
58-
#if $heatmap.cbar == "yes":
59-
--cbar
60-
#end if
53+
--cmap $heatmap.cmap
54+
--vmin $heatmap.vmin
55+
--vmax $heatmap.vmax
56+
--center $heatmap.center
57+
#if $heatmap.cbar == "yes":
58+
--cbar
6159
#end if
62-
60+
6361
--nproc "\${GALAXY_SLOTS:-4}"
6462
--overwrite
6563
--verbose
@@ -90,7 +88,7 @@
9088
<conditional name="log_transform">
9189
<!-- Enable log-transformation -->
9290
<param name="enable_lt" type="boolean" checked="false" truevalue="yes" falsevalue="no"
93-
label="Log-transform z-scores?" />
91+
label="Log-transform z-scores" />
9492

9593
<when value="yes">
9694
<!-- Scale options -->
@@ -111,40 +109,34 @@
111109
</conditional>
112110
</when>
113111
</conditional>
112+
113+
<!-- Heatmap customization options -->
114+
<section name="heatmap" expanded="true"
115+
title="Heatmap customization"
116+
help="Access advanced options to customize the produced heatmap by specifying the colormap, scale, and color bar">
117+
<!-- Colormap -->
118+
<param name="cmap" type="text" value="PiYG"
119+
label="Heatmap colormap" />
114120

115-
<!-- Log-transformation options -->
116-
<conditional name="heatmap">
117-
<!-- Enable log-transformation -->
118-
<param name="customize" type="boolean" checked="false" truevalue="true" falsevalue="false"
119-
label="Customize heatmap"
120-
help="Access advanced options to customize the graphical output." />
121+
<!-- Vmin -->
122+
<param name="vmin" type="float" value="2.2967"
123+
label="Select a vmin value"
124+
help="Min value to anchor the colormap" />
121125

122-
<!-- In case of "true" -->
123-
<when value="true">
124-
<!-- Colormap -->
125-
<param name="cmap" type="text" value="PiYG"
126-
label="Heatmap colormap" />
127-
128-
<!-- Vmin -->
129-
<param name="vmin" type="float" value="2.2967"
130-
label="Select a vmin value"
131-
help="Min value to anchor the colormap" />
132-
133-
<!-- Vmax -->
134-
<param name="vmax" type="float" value="4.3957"
135-
label="Select a vmax value"
136-
help="Max value to anchor the colormap" />
137-
138-
<!-- Center -->
139-
<param name="center" type="float" value="2.9957"
140-
label="Select a center"
141-
help="The value at which to center the colormap when plotting divergent data" />
142-
143-
<!-- Cbar -->
144-
<param name="cbar" type="boolean" checked="false" truevalue="yes" falsevalue="no"
145-
label="Add a color bar" />
146-
</when>
147-
</conditional>
126+
<!-- Vmax -->
127+
<param name="vmax" type="float" value="4.3957"
128+
label="Select a vmax value"
129+
help="Max value to anchor the colormap" />
130+
131+
<!-- Center -->
132+
<param name="center" type="float" value="2.9957"
133+
label="Select a center"
134+
help="The value at which to center the colormap when plotting divergent data" />
135+
136+
<!-- Cbar -->
137+
<param name="cbar" type="boolean" checked="false" truevalue="yes" falsevalue="no"
138+
label="Add a color bar" />
139+
</section>
148140
</inputs>
149141

150142
<outputs>
@@ -165,7 +157,69 @@
165157
</outputs>
166158

167159
<help><![CDATA[
168-
Define the tool help here with info about input and output
160+
**Homophily Network Tool**
161+
162+
`honto` is a tool designed for assessing and measuring homophily in networks whose nodes have categorical attributes,
163+
namely when the nodes of networks come partitioned into classes.
164+
165+
Homophily evaluation is performed through the comparison between the relative edge density of the subgraphs,
166+
induced by each class, and the corresponding expected relative edge density under a null model.
167+
168+
The novelty of our approach consists in prescribing an endogenous null model, namely, the sample space of the null model
169+
is built on the input network itself. This allows us to give exact explicit expressions for the z-scores of the
170+
relative edge density of each class as well as other related statistics
171+
172+
-----
173+
174+
**Input**
175+
176+
The first input is file representing an undirected network composed by a list of edges like the example below.
177+
No header lines are allowed.
178+
179+
+--------+--------+
180+
| TP0001 | TP1015 |
181+
+--------+--------+
182+
| TP0001 | TP0949 |
183+
+--------+--------+
184+
| TP0001 | TP0692 |
185+
+--------+--------+
186+
| ... | ... |
187+
+--------+--------+
188+
| TP0976 | TP0977 |
189+
+--------+--------+
190+
| TP1032 | TP1033 |
191+
+--------+--------+
192+
193+
194+
Please note that the above mentioned file could also have an additional column with numeric weight values.
195+
You may want to avoid considering some nodes by applying a threshold on this column.
196+
197+
The second input is the nodes definition file. It contains a row for each node in the network with two columns
198+
with a mapping between the node name and a color or group id, like in the example below.
199+
No header lines are allowed in this case either.
200+
201+
+--------+-----+
202+
| TP0001 | L |
203+
+--------+-----+
204+
| TP1015 | K |
205+
+--------+-----+
206+
| TP0949 | U |
207+
+--------+-----+
208+
| TP0692 | L |
209+
+--------+-----+
210+
| ... | ... |
211+
+--------+-----+
212+
| TP1032 | X |
213+
+--------+-----+
214+
| TP1033 | X |
215+
+--------+-----+
216+
217+
-----
218+
219+
**Output**
220+
221+
The tool produces three output files. Two of them contains the z-scores for both edges and singletons.
222+
The third output is a PDF with the final heatmap.
169223
170224
-----
171225

0 commit comments

Comments
 (0)