|
50 | 50 | #end if
|
51 | 51 | #end if
|
52 | 52 |
|
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 |
61 | 59 | #end if
|
62 |
| -
|
| 60 | + |
63 | 61 | --nproc "\${GALAXY_SLOTS:-4}"
|
64 | 62 | --overwrite
|
65 | 63 | --verbose
|
|
90 | 88 | <conditional name="log_transform">
|
91 | 89 | <!-- Enable log-transformation -->
|
92 | 90 | <param name="enable_lt" type="boolean" checked="false" truevalue="yes" falsevalue="no"
|
93 |
| - label="Log-transform z-scores?" /> |
| 91 | + label="Log-transform z-scores" /> |
94 | 92 |
|
95 | 93 | <when value="yes">
|
96 | 94 | <!-- Scale options -->
|
|
111 | 109 | </conditional>
|
112 | 110 | </when>
|
113 | 111 | </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" /> |
114 | 120 |
|
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" /> |
121 | 125 |
|
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> |
148 | 140 | </inputs>
|
149 | 141 |
|
150 | 142 | <outputs>
|
|
165 | 157 | </outputs>
|
166 | 158 |
|
167 | 159 | <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. |
169 | 223 |
|
170 | 224 | -----
|
171 | 225 |
|
|
0 commit comments