comparison macros.xml @ 0:9ca360dde8e3 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/scanpy/ commit 92f85afaed0097d1879317a9f513093fce5481d6
author iuc
date Mon, 04 Mar 2019 10:16:47 -0500
parents
children a89ee42625ad
comparison
equal deleted inserted replaced
-1:000000000000 0:9ca360dde8e3
1 <macros>
2 <token name="@version@">1.4</token>
3 <token name="@galaxy_version@"><![CDATA[@version@+galaxy0]]></token>
4 <xml name="requirements">
5 <requirements>
6 <requirement type="package" version="@version@">scanpy</requirement>
7 <requirement type="package" version="2.0.17">loompy</requirement>
8 <yield />
9 </requirements>
10 </xml>
11 <xml name="citations">
12 <citations>
13 <citation type="doi">10.1186/s13059-017-1382-0</citation>
14 </citations>
15 </xml>
16 <xml name="version_command">
17 <version_command><![CDATA[python -c "import scanpy.api as sc;print('scanpy version: %s' % sc.__version__)"]]></version_command>
18 </xml>
19 <token name="@CMD@"><![CDATA[
20 cat '$script_file' &&
21 python '$script_file'
22 ]]>
23 </token>
24 <token name="@CMD_imports@"><![CDATA[
25 import scanpy.api as sc
26 import pandas as pd
27 import numpy as np
28 ]]>
29 </token>
30 <xml name="inputs_anndata">
31 <conditional name="input">
32 <param name="format" type="select" label="Format for the annotated data matrix">
33 <option value="loom">loom</option>
34 <option value="h5ad">h5ad-formatted hdf5 (anndata)</option>
35 </param>
36 <when value="loom">
37 <param name="adata" type="data" format="loom" label="Annotated data matrix"/>
38 <param name="sparse" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Is the data matrix to read sparse?"/>
39 <param name="cleanup" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Cleanup?"/>
40 <param name="x_name" type="text" value="spliced" label="X_name"/>
41 <param name="obs_names" type="text" value="CellID" label="obs_names"/>
42 <param name="var_names" type="text" value="Gene" label="var_names"/>
43 </when>
44 <when value="h5ad">
45 <param name="adata" type="data" format="h5" label="Annotated data matrix"/>
46 </when>
47 </conditional>
48 </xml>
49 <token name="@CMD_read_inputs@"><![CDATA[
50 #if $input.format == 'loom'
51 adata = sc.read_loom(
52 '$input.adata',
53 sparse=$input.sparse,
54 cleanup=$input.cleanup,
55 X_name='$input.x_name',
56 obs_names='$input.obs_names',
57 var_names='$input.var_names')
58 #else if $input.format == 'h5ad'
59 adata = sc.read_h5ad('$input.adata')
60 #end if
61 ]]>
62 </token>
63 <xml name="anndata_output_format">
64 <param name="anndata_output_format" type="select" label="Format to write the annotated data matrix">
65 <option value="loom">loom</option>
66 <option value="h5ad">h5ad-formatted hdf5 (anndata)</option>
67 </param>
68 </xml>
69 <xml name="anndata_modify_output_input">
70 <conditional name="modify_anndata">
71 <param name="modify_anndata" type="select" label="Return modify annotate data matrix?">
72 <option value="true">Yes</option>
73 <option value="false">No</option>
74 </param>
75 <when value="true">
76 <expand macro="anndata_output_format"/>
77 </when>
78 <when value="false"/>
79 </conditional>
80 </xml>
81 <xml name="anndata_outputs">
82 <data name="anndata_out_h5ad" format="h5" from_work_dir="anndata.h5ad" label="${tool.name} on ${on_string}: Annotated data matrix">
83 <filter>anndata_output_format == 'h5ad'</filter>
84 </data>
85 <data name="anndata_out_loom" format="loom" from_work_dir="anndata.loom" label="${tool.name} on ${on_string}: Annotated data matrix">
86 <filter>anndata_output_format == 'loom'</filter>
87 </data>
88 </xml>
89 <xml name="anndata_modify_outputs">
90 <data name="anndata_out_h5ad" format="h5" from_work_dir="anndata.h5ad" label="${tool.name} on ${on_string}: Annotated data matrix">
91 <filter>modify_anndata['modify_anndata'] == 'true' and modify_anndata['anndata_output_format'] == 'h5ad'</filter>
92 </data>
93 <data name="anndata_out_loom" format="loom" from_work_dir="anndata.loom" label="${tool.name} on ${on_string}: Annotated data matrix">
94 <filter>modify_anndata['modify_anndata'] == 'true' and modify_anndata['anndata_output_format'] == 'loom'</filter>
95 </data>
96 </xml>
97 <token name="@CMD_anndata_write_outputs@"><![CDATA[
98 #if $anndata_output_format == 'loom'
99 adata.write_loom('anndata.loom')
100 #else if $anndata_output_format == 'h5ad'
101 adata.write('anndata.h5ad')
102 #end if
103 ]]>
104 </token>
105 <token name="@CMD_anndata_write_modify_outputs@"><![CDATA[
106 #if $modify_anndata.modify_anndata == 'true'
107 #if $modify_anndata.anndata_output_format == 'loom'
108 adata.write_loom('anndata.loom')
109 #elif $modify_anndata.anndata_output_format == 'h5ad'
110 adata.write('anndata.h5ad')
111 #end if
112 #end if
113 ]]>
114 </token>
115 <xml name="svd_solver">
116 <param name="svd_solver" type="select" label="SVD solver to use" help="">
117 <option value="auto">Automatically chosen depending on the size of the problem</option>
118 <option value="arpack">ARPACK wrapper in SciPy</option>
119 <option value="randomized">Randomized algorithm due to Halko (2009)</option>
120 </param>
121 </xml>
122 <xml name="pca_random_state">
123 <param name="random_state" type="integer" value="0" label="Initial states for the optimization" help=""/>
124 </xml>
125 <xml name="param_plot_format">
126 <param name="format" type="select" label="Format for saving figures">
127 <option value="png">png</option>
128 <option value="pdf">pdf</option>
129 <option value="svg">svg</option>
130 </param>
131 </xml>
132 <xml name="numeric_distance_metric_options">
133 <option value="braycurtis">braycurtis</option>
134 <option value="canberra">canberra</option>
135 <option value="chebyshev">chebyshev</option>
136 <option value="cityblock">cityblock</option>
137 <option value="correlation">correlation</option>
138 <option value="cosine">cosine</option>
139 <option value="euclidean" selected="true">euclidean</option>
140 <option value="mahalanobis">mahalanobis</option>
141 <option value="matching">matching</option>
142 <option value="minkowski">minkowski</option>
143 <option value="seuclidean">seuclidean</option>
144 <option value="sqeuclidean">sqeuclidean</option>
145 <option value="wminkowski">wminkowski</option>
146 </xml>
147 <xml name="boolean_distance_metric_options">
148 <option value="dice">dice</option>
149 <option value="hamming">hamming</option>
150 <option value="jaccard">jaccard</option>
151 <option value="kulsinski">kulsinski</option>
152 <option value="rogerstanimoto">rogerstanimoto</option>
153 <option value="russellrao">russellrao</option>
154 <option value="sokalmichener">sokalmichener</option>
155 <option value="sokalsneath">sokalsneath</option>
156 <option value="yule">yule</option>
157 </xml>
158 <xml name="distance_metric_options">
159 <expand macro="numeric_distance_metric_options"/>
160 <expand macro="boolean_distance_metric_options"/>
161 </xml>
162 <xml name="seaborn_color_palette_options">
163 <option value="Accent">Accent</option>
164 <option value="Accent_r">Accent_r</option>
165 <option value="Blues">Blues</option>
166 <option value="Blues_r">Blues_r</option>
167 <option value="BrBG">BrBG</option>
168 <option value="BrBG_r">BrBG_r</option>
169 <option value="BuGn">BuGn</option>
170 <option value="BuGn_r">BuGn_r</option>
171 <option value="BuPu">BuPu</option>
172 <option value="BuPu_r">BuPu_r</option>
173 <option value="CMRmap">CMRmap</option>
174 <option value="CMRmap_r">CMRmap_r</option>
175 <option value="Dark2">Dark2</option>
176 <option value="Dark2_r">Dark2_r</option>
177 <option value="GnBu">GnBu</option>
178 <option value="GnBu_r">GnBu_r</option>
179 <option value="Greens">Greens</option>
180 <option value="Greens_r">Greens_r</option>
181 <option value="Greys">Greys</option>
182 <option value="Greys_r">Greys_r</option>
183 <option value="OrRd">OrRd</option>
184 <option value="OrRd_r">OrRd_r</option>
185 <option value="Oranges">Oranges</option>
186 <option value="Oranges_r">Oranges_r</option>
187 <option value="PRGn">PRGn</option>
188 <option value="PRGn_r">PRGn_r</option>
189 <option value="Paired">Paired</option>
190 <option value="Paired_r">Paired_r</option>
191 <option value="Pastel1">Pastel1</option>
192 <option value="Pastel1_r">Pastel1_r</option>
193 <option value="Pastel2">Pastel2</option>
194 <option value="Pastel2_r">Pastel2_r</option>
195 <option value="PiYG">PiYG</option>
196 <option value="PiYG_r">PiYG_r</option>
197 <option value="PuBu">PuBu</option>
198 <option value="PuBuGn">PuBuGn</option>
199 <option value="PuBuGn_r">PuBuGn_r</option>
200 <option value="PuBu_r">PuBu_r</option>
201 <option value="PuOr">PuOr</option>
202 <option value="PuOr_r">PuOr_r</option>
203 <option value="PuRd">PuRd</option>
204 <option value="PuRd_r">PuRd_r</option>
205 <option value="Purples">Purples</option>
206 <option value="Purples_r">Purples_r</option>
207 <option value="RdBu">RdBu</option>
208 <option value="RdBu_r">RdBu_r</option>
209 <option value="RdGy">RdGy</option>
210 <option value="RdPu">RdPu</option>
211 <option value="RdPu_r">RdPu_r</option>
212 <option value="RdYlBu">RdYlBu</option>
213 <option value="RdYlBu_r">RdYlBu_r</option>
214 <option value="RdYlGn">RdYlGn</option>
215 <option value="RdYlGn_r">RdYlGn_r</option>
216 <option value="Reds">Reds</option>
217 <option value="Reds_r">Reds_r</option>
218 <option value="Set1">Set1</option>
219 <option value="Set1_r">Set1_r</option>
220 <option value="Set2">Set2</option>
221 <option value="Set2_r">Set2_r</option>
222 <option value="Set3">Set3</option>
223 <option value="Set3_r">Set3_r</option>
224 <option value="Spectral">Spectral</option>
225 <option value="Spectral_r">Spectral_r</option>
226 <option value="Wistia">Wistia</option>
227 <option value="Wistia_r">Wistia_r</option>
228 <option value="YlGn">YlGn</option>
229 <option value="YlGn_r">YlGn_r</option>
230 <option value="YlGnBu">YlGnBu</option>
231 <option value="YlGnBu_r">YlGnBu_r</option>
232 <option value="YlOrBr">YlOrBr</option>
233 <option value="YlOrBr_r">YlOrBr_r</option>
234 <option value="YlOrRd">YlOrRd</option>
235 <option value="YlOrRd_r">YlOrRd_r</option>
236 <option value="afmhot">afmhot</option>
237 <option value="afmhot_r">afmhot_r</option>
238 <option value="autumn">autumn</option>
239 <option value="autumn_r">autumn_r</option>
240 <option value="binary">binary</option>
241 <option value="binary_r">binary_r</option>
242 <option value="bone">bone</option>
243 <option value="bone_r">bone_r</option>
244 <option value="brg">brg</option>
245 <option value="brg_r">brg_r</option>
246 <option value="bwr">bwr</option>
247 <option value="bwr_r">bwr_r</option>
248 <option value="cividis">cividis</option>
249 <option value="cividis_r">cividis_r</option>
250 <option value="cool">cool</option>
251 <option value="cool_r">cool_r</option>
252 <option value="coolwarm">coolwarm</option>
253 <option value="coolwarm_r">coolwarm_r</option>
254 <option value="copper">copper</option>
255 <option value="copper_r">copper_r</option>
256 <option value="cubehelix">cubehelix</option>
257 <option value="cubehelix_r">cubehelix_r</option>
258 <option value="flag">flag</option>
259 <option value="flag_r">flag_r</option>
260 <option value="gist_earth">gist_earth</option>
261 <option value="gist_earth_r">gist_earth_r</option>
262 <option value="gist_gray">gist_gray</option>
263 <option value="gist_gray_r">gist_gray_r</option>
264 <option value="gist_heat">gist_heat</option>
265 <option value="gist_heat_r">gist_heat_r</option>
266 <option value="gist_ncar">gist_ncar</option>
267 <option value="gist_ncar_r">gist_ncar_r</option>
268 <option value="gist_rainbow">gist_rainbow</option>
269 <option value="gist_rainbow_r">gist_rainbow_r</option>
270 <option value="gist_stern">gist_stern</option>
271 <option value="gist_stern_r">gist_stern_r</option>
272 <option value="gist_yarg">gist_yarg</option>
273 <option value="gist_yarg_r">gist_yarg_r</option>
274 <option value="gnuplot">gnuplot</option>
275 <option value="gnuplot_r">gnuplot_r</option>
276 <option value="gnuplot2">gnuplot2</option>
277 <option value="gnuplot2_r">gnuplot2_r</option>
278 <option value="gray">gray</option>
279 <option value="gray_r">gray_r</option>
280 <option value="hot">hot</option>
281 <option value="hot_r">hot_r</option>
282 <option value="hsv">hsv</option>
283 <option value="hsv_r">hsv_r</option>
284 <option value="icefire">icefire</option>
285 <option value="icefire_r">icefire_r</option>
286 <option value="inferno">inferno</option>
287 <option value="inferno_r">inferno_r</option>
288 <option value="jet">jet</option>
289 <option value="jet_r">jet_r</option>
290 <option value="magma">magma</option>
291 <option value="magma_r">magma_r</option>
292 <option value="mako">mako</option>
293 <option value="mako_r">mako_r</option>
294 <option value="nipy_spectral">nipy_spectral</option>
295 <option value="nipy_spectral_r">nipy_spectral_r</option>
296 <option value="ocean">ocean</option>
297 <option value="ocean_r">ocean_r</option>
298 <option value="pink">pink</option>
299 <option value="pink_r">pink_r</option>
300 <option value="plasma">plasma</option>
301 <option value="plasma_r">plasma_r</option>
302 <option value="prism">prism</option>
303 <option value="prism_r">prism_r</option>
304 <option value="rainbow">rainbow</option>
305 <option value="rainbow_r">rainbow_r</option>
306 <option value="rocket">rocket</option>
307 <option value="rocket_r">rocket_r</option>
308 <option value="seismic">seismic</option>
309 <option value="seismic_r">seismic_r</option>
310 <option value="spring">spring</option>
311 <option value="spring_r">spring_r</option>
312 <option value="summer">summer</option>
313 <option value="summer_r">summer_r</option>
314 <option value="tab10">tab10</option>
315 <option value="tab10_r">tab10_r</option>
316 <option value="tab20">tab20</option>
317 <option value="tab20_r">tab20_r</option>
318 <option value="tab20b">tab20b</option>
319 <option value="tab20b_r">tab20b_r</option>
320 <option value="tab20c">tab20c</option>
321 <option value="tab20c_r">tab20c_r</option>
322 <option value="terrain">terrain</option>
323 <option value="terrain_r">terrain_r</option>
324 <option value="twilight">twilight</option>
325 <option value="twilight_r">twilight_r</option>
326 <option value="twilight_shifted">twilight_shifted</option>
327 <option value="twilight_shifted_r">twilight_shifted_r</option>
328 <option value="viridis">viridis</option>
329 <option value="viridis_r">viridis_r</option>
330 <option value="vlag">vlag</option>
331 <option value="vlag_r">vlag_r</option>
332 <option value="winter">winter</option>
333 <option value="winter_r">winter_r</option>
334 </xml>
335 <xml name="matplotlib_pyplot_colormap">
336 <option value="viridis">viridis (Perceptually Uniform Sequential)</option>
337 <option value="plasma">plasma (Perceptually Uniform Sequential)</option>
338 <option value="inferno">inferno (Perceptually Uniform Sequential)</option>
339 <option value="magma">magma (Perceptually Uniform Sequential)</option>
340 <option value="cividis">cividis (Perceptually Uniform Sequential)</option>
341 <option value="Greys">Greys (Sequential)</option>
342 <option value="Purples">Purples (Sequential)</option>
343 <option value="Blues">Blues (Sequential)</option>
344 <option value="Greens">Greens (Sequential)</option>
345 <option value="Oranges">Oranges (Sequential)</option>
346 <option value="Reds">Reds (Sequential)</option>
347 <option value="YlOrBr">YlOrBr (Sequential)</option>
348 <option value="YlOrRd">YlOrRd (Sequential)</option>
349 <option value="OrRd">OrRd (Sequential)</option>
350 <option value="PuRd">PuRd (Sequential)</option>
351 <option value="RdPu">RdPu (Sequential)</option>
352 <option value="BuPu">BuPu (Sequential)</option>
353 <option value="GnBu">GnBu (Sequential)</option>
354 <option value="PuBu">PuBu (Sequential)</option>
355 <option value="YlGnBu">YlGnBu (Sequential)</option>
356 <option value="PuBuGn">PuBuGn (Sequential)</option>
357 <option value="BuGn">BuGn (Sequential)</option>
358 <option value="YlGn">YlGn (Sequential)</option>
359 <option value="binary">binary (Sequential 2)</option>
360 <option value="gist_yarg">gist_yarg (Sequential 2)</option>
361 <option value="gist_gray">gist_gray (Sequential 2)</option>
362 <option value="gray">gray (Sequential 2)</option>
363 <option value="bone">bone (Sequential 2)</option>
364 <option value="pink">pink (Sequential 2)</option>
365 <option value="spring">spring (Sequential 2)</option>
366 <option value="summer">summer (Sequential 2)</option>
367 <option value="autumn">autumn (Sequential 2)</option>
368 <option value="winter">winter (Sequential 2)</option>
369 <option value="cool">cool (Sequential 2)</option>
370 <option value="Wistia">Wistia (Sequential 2)</option>
371 <option value="hot">hot (Sequential 2)</option>
372 <option value="afmhot">afmhot (Sequential 2)</option>
373 <option value="gist_heat">gist_heat (Sequential 2)</option>
374 <option value="copper">copper (Sequential 2)</option>
375 <option value="PiYG">PiYG (Diverging)</option>
376 <option value="PRGn">PRGn (Diverging)</option>
377 <option value="BrBG">BrBG (Diverging)</option>
378 <option value="PuOr">PuOr (Diverging)</option>
379 <option value="RdGy">RdGy (Diverging)</option>
380 <option value="RdBu">RdBu (Diverging)</option>
381 <option value="RdYlBu">RdYlBu (Diverging)</option>
382 <option value="RdYlGn">RdYlGn (Diverging)</option>
383 <option value="Spectral">Spectral (Diverging)</option>
384 <option value="coolwarm">coolwarm (Diverging)</option>
385 <option value="bwr">bwr (Diverging)</option>
386 <option value="seismic">seismic (Diverging)</option>
387 <option value="twilight">twilight (Cyclic)</option>
388 <option value="twilight_shifted">twilight_shifted (Cyclic)</option>
389 <option value="hsv">hsv (Cyclic)</option>
390 <option value="Pastel1">Pastel1 (Qualitative)</option>
391 <option value="Pastel2">Pastel2 (Qualitative)</option>
392 <option value="Paired">Paired (Qualitative)</option>
393 <option value="Accent">Accent (Qualitative)</option>
394 <option value="Dark2">Dark2 (Qualitative)</option>
395 <option value="Set1">Set1 (Qualitative)</option>
396 <option value="Set2">Set2 (Qualitative)</option>
397 <option value="Set3">Set3 (Qualitative)</option>
398 <option value="tab10">tab10 (Qualitative)</option>
399 <option value="tab20">tab20 (Qualitative)</option>
400 <option value="tab20b">tab20b (Qualitative)</option>
401 <option value="tab20c">tab20c (Qualitative)</option>
402 <option value="flag">flag (Miscellaneous)</option>
403 <option value="prism">prism (Miscellaneous)</option>
404 <option value="ocean">ocean (Miscellaneous)</option>
405 <option value="gist_earth">gist_earth (Miscellaneous)</option>
406 <option value="terrain">terrain (Miscellaneous)</option>
407 <option value="gist_stern">gist_stern (Miscellaneous)</option>
408 <option value="gnuplot">gnuplot (Miscellaneous)</option>
409 <option value="gnuplot2">gnuplot2 (Miscellaneous)</option>
410 <option value="CMRmap">CMRmap (Miscellaneous)</option>
411 <option value="cubehelix">cubehelix (Miscellaneous)</option>
412 <option value="brg">brg (Miscellaneous)</option>
413 <option value="gist_rainbow">gist_rainbow (Miscellaneous)</option>
414 <option value="rainbow">rainbow (Miscellaneous)</option>
415 <option value="jet">jet (Miscellaneous)</option>
416 <option value="nipy_spectral">nipy_spectral (Miscellaneous)</option>
417 <option value="gist_ncar">gist_ncar (Miscellaneous)</option>
418 </xml>
419 <xml name="param_groupby">
420 <param argument="groupby" type="text" value="" optional="true" label="The key of the observation grouping to consider" help="If it is given, the heatmap is ordered by the respective group. It is expected that to be a categorical. If it is not a categorical observation, it would be subdivided into `num_categories`."/>
421 </xml>
422 <xml name="param_use_raw">
423 <param argument="use_raw" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Use `raw` attribute of input if present" help=""/>
424 </xml>
425 <xml name="param_log">
426 <param argument="log" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Use the log of the values?" help=""/>
427 </xml>
428 <xml name="pl_figsize">
429 <conditional name="figsize">
430 <param name="test" type="select" label="Custom figure size" >
431 <option value="yes">Yes</option>
432 <option value="no" selected="true">No: the figure width is set based on the number of variable names and the height is set to 10.</option>
433 </param>
434 <when value="yes">
435 <param argument="width" type="integer" min="0" value="10" label="Figure width" help=""/>
436 <param argument="height" type="integer" min="0" value="10" label="Figure height" help=""/>
437 </when>
438 <when value="no"/>
439 </conditional>
440 </xml>
441 <token name="@CMD_params_figsize@"><![CDATA[
442
443 ]]></token>
444 <xml name="pl_var_names">
445 <conditional name="var_names">
446 <param name="type" type="select" label="Variables to plot (columns of the heatmaps)" >
447 <option value="all">All variables in `adata.var_names`</option>
448 <option value="custom">Subset of variables in `adata.var_names`</option>
449 </param>
450 <when value="all"/>
451 <when value="custom">
452 <param argument="var_names" type="text" value="" label="List of variables to plot" help="They should be a valid subset of `adata.var_names`, and separated by comma"/>
453 </when>
454 </conditional>
455 </xml>
456 <xml name="param_num_categories">
457 <param argument="num_categories" type="integer" min="0" value="7" label="Number of categories" help="It is only used if groupby observation is not categorical. This value determines the number of groups into which the groupby observation should be subdivided."/>
458 </xml>
459 <xml name="param_dendrogram">
460 <param argument="dendrogram" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Compute and plot a dendrogram?" help="groupby categories are reordered accoring to the dendrogram order. If groups of var_names are set and those groups correspond to the groupby categories, those groups are also reordered. The ‘person’ method is used to compute the pairwise correlation between categories using all var_names in raw if use_raw is None, otherwise all adata.var_names are used. The linkage method used is complete."/>
461 </xml>
462 <xml name="pl_var_group_positions">
463 <repeat name="var_group_positions" title="Group of variables to highlight" help="This will draw a 'bracket' on top of the plot between the given start and end positions. If a label is given, it will be added on top of the bracket. ">
464 <param name="start" type="integer" min="0" value="" label="Start" help=""/>
465 <param name="end" type="integer" min="0" value="" label="End" help=""/>
466 <param argument="label" type="text" value="" label="Label" help=""/>
467 </repeat>
468 </xml>
469 <xml name="param_var_group_rotation">
470 <param argument="var_group_rotation" type="float" value="" optional="true" label="Label rotation degrees" help="By default, labels larger than 4 characters are rotated 90 degrees"/>
471 </xml>
472 <xml name="param_layer">
473 <param argument="layer" type="text" value="" label="Name of the AnnData object layer that wants to be plotted" help="By default `adata.raw.X` is plotted. If `use_raw=False` is set, then `adata.X` is plotted. If layer is set to a valid layer name, then the layer is plotted. layer takes precedence over `use_raw`."/>
474 </xml>
475 <token name="@CMD_param_plot_inputs@"><![CDATA[
476 adata=adata,
477 save='.$format',
478 show=False,
479 ]]></token>
480 <xml name="params_plots">
481 <expand macro="pl_var_names"/>
482 <expand macro="param_groupby"/>
483 <expand macro="param_log"/>
484 <expand macro="param_use_raw"/>
485 <expand macro="param_num_categories"/>
486 <expand macro="param_dendrogram"/>
487 <expand macro="pl_var_group_positions"/>
488 <expand macro="param_var_group_rotation"/>
489 <expand macro="pl_figsize"/>
490 <expand macro="param_layer"/>
491 </xml>
492 <token name="@CMD_params_plots@"><![CDATA[
493 #if $method.var_names.type == 'all'
494 var_names=adata.var_names,
495 #else
496 #set $var_names = ([x.strip() for x in str($method.var_names.var_names).split(',')])
497 var_names=$var_names,
498 #end if
499 #if str($method.groupby) != ''
500 groupby='$method.groupby',
501 #end if
502 log=$method.log,
503 use_raw=$method.use_raw,
504 num_categories=$method.num_categories,
505 dendrogram=$method.dendrogram,
506 #if len($method.var_group_positions) > 0:
507 #set $var_group_positions=[]
508 #set $var_group_labels=[]
509 #for $i, $s in enumerate($method.var_group_positions)
510 #silent $var_group_positions.append((int($s.start), int($s.end)))
511 #silent $var_group_labels.append(str($s.label))
512 #end for
513 var_group_positions=$var_group_positions,
514 var_group_labels=$var_group_labels,
515 #else
516 var_group_positions=None,
517 var_group_labels=None,
518 #end if
519 #if $method.var_group_rotation
520 var_group_rotation=$method.var_group_rotation,
521 #end if
522 #if $method.figsize.test == 'yes'
523 figsize=($method.figsize.width, $method.figsize.height),
524 #end if
525 #if $method.layer != ''
526 layer='$method.layer',
527 #end if
528 ]]></token>
529 <xml name="matplotlib_color">
530 <option value="AliceBlue">AliceBlue</option>
531 <option value="AntiqueWhite">AntiqueWhite</option>
532 <option value="Aqua">Aqua</option>
533 <option value="Aquamarine">Aquamarine</option>
534 <option value="Azure">Azure</option>
535 <option value="Beige">Beige</option>
536 <option value="Bisque">Bisque</option>
537 <option value="Black">Black</option>
538 <option value="BlanchedAlmond">BlanchedAlmond</option>
539 <option value="Blue">Blue</option>
540 <option value="BlueViolet">BlueViolet</option>
541 <option value="Brown">Brown</option>
542 <option value="BurlyWood">BurlyWood</option>
543 <option value="CadetBlue">CadetBlue</option>
544 <option value="Chartreuse">Chartreuse</option>
545 <option value="Chocolate">Chocolate</option>
546 <option value="Coral">Coral</option>
547 <option value="CornflowerBlue">CornflowerBlue</option>
548 <option value="Cornsilk">Cornsilk</option>
549 <option value="Crimson">Crimson</option>
550 <option value="Cyan">Cyan</option>
551 <option value="DarkBlue">DarkBlue</option>
552 <option value="DarkCyan">DarkCyan</option>
553 <option value="DarkGoldenRod">DarkGoldenRod</option>
554 <option value="DarkGray">DarkGray</option>
555 <option value="DarkGrey">DarkGrey</option>
556 <option value="DarkGreen">DarkGreen</option>
557 <option value="DarkKhaki">DarkKhaki</option>
558 <option value="DarkMagenta">DarkMagenta</option>
559 <option value="DarkOliveGreen">DarkOliveGreen</option>
560 <option value="DarkOrange">DarkOrange</option>
561 <option value="DarkOrchid">DarkOrchid</option>
562 <option value="DarkRed">DarkRed</option>
563 <option value="DarkSalmon">DarkSalmon</option>
564 <option value="DarkSeaGreen">DarkSeaGreen</option>
565 <option value="DarkSlateBlue">DarkSlateBlue</option>
566 <option value="DarkSlateGray">DarkSlateGray</option>
567 <option value="DarkSlateGrey">DarkSlateGrey</option>
568 <option value="DarkTurquoise">DarkTurquoise</option>
569 <option value="DarkViolet">DarkViolet</option>
570 <option value="DeepPink">DeepPink</option>
571 <option value="DeepSkyBlue">DeepSkyBlue</option>
572 <option value="DimGray">DimGray</option>
573 <option value="DimGrey">DimGrey</option>
574 <option value="DodgerBlue">DodgerBlue</option>
575 <option value="FireBrick">FireBrick</option>
576 <option value="FloralWhite">FloralWhite</option>
577 <option value="ForestGreen">ForestGreen</option>
578 <option value="Fuchsia">Fuchsia</option>
579 <option value="Gainsboro">Gainsboro</option>
580 <option value="GhostWhite">GhostWhite</option>
581 <option value="Gold">Gold</option>
582 <option value="GoldenRod">GoldenRod</option>
583 <option value="Gray">Gray</option>
584 <option value="Grey">Grey</option>
585 <option value="Green">Green</option>
586 <option value="GreenYellow">GreenYellow</option>
587 <option value="HoneyDew">HoneyDew</option>
588 <option value="HotPink">HotPink</option>
589 <option value="IndianRed">IndianRed</option>
590 <option value="Indigo">Indigo</option>
591 <option value="Ivory">Ivory</option>
592 <option value="Khaki">Khaki</option>
593 <option value="Lavender">Lavender</option>
594 <option value="LavenderBlush">LavenderBlush</option>
595 <option value="LawnGreen">LawnGreen</option>
596 <option value="LemonChiffon">LemonChiffon</option>
597 <option value="LightBlue">LightBlue</option>
598 <option value="LightCoral">LightCoral</option>
599 <option value="LightCyan">LightCyan</option>
600 <option value="LightGoldenRodYellow">LightGoldenRodYellow</option>
601 <option value="LightGray">LightGray</option>
602 <option value="LightGrey">LightGrey</option>
603 <option value="LightGreen">LightGreen</option>
604 <option value="LightPink">LightPink</option>
605 <option value="LightSalmon">LightSalmon</option>
606 <option value="LightSeaGreen">LightSeaGreen</option>
607 <option value="LightSkyBlue">LightSkyBlue</option>
608 <option value="LightSlateGray">LightSlateGray</option>
609 <option value="LightSlateGrey">LightSlateGrey</option>
610 <option value="LightSteelBlue">LightSteelBlue</option>
611 <option value="LightYellow">LightYellow</option>
612 <option value="Lime">Lime</option>
613 <option value="LimeGreen">LimeGreen</option>
614 <option value="Linen">Linen</option>
615 <option value="Magenta">Magenta</option>
616 <option value="Maroon">Maroon</option>
617 <option value="MediumAquaMarine">MediumAquaMarine</option>
618 <option value="MediumBlue">MediumBlue</option>
619 <option value="MediumOrchid">MediumOrchid</option>
620 <option value="MediumPurple">MediumPurple</option>
621 <option value="MediumSeaGreen">MediumSeaGreen</option>
622 <option value="MediumSlateBlue">MediumSlateBlue</option>
623 <option value="MediumSpringGreen">MediumSpringGreen</option>
624 <option value="MediumTurquoise">MediumTurquoise</option>
625 <option value="MediumVioletRed">MediumVioletRed</option>
626 <option value="MidnightBlue">MidnightBlue</option>
627 <option value="MintCream">MintCream</option>
628 <option value="MistyRose">MistyRose</option>
629 <option value="Moccasin">Moccasin</option>
630 <option value="NavajoWhite">NavajoWhite</option>
631 <option value="Navy">Navy</option>
632 <option value="OldLace">OldLace</option>
633 <option value="Olive">Olive</option>
634 <option value="OliveDrab">OliveDrab</option>
635 <option value="Orange">Orange</option>
636 <option value="OrangeRed">OrangeRed</option>
637 <option value="Orchid">Orchid</option>
638 <option value="PaleGoldenRod">PaleGoldenRod</option>
639 <option value="PaleGreen">PaleGreen</option>
640 <option value="PaleTurquoise">PaleTurquoise</option>
641 <option value="PaleVioletRed">PaleVioletRed</option>
642 <option value="PapayaWhip">PapayaWhip</option>
643 <option value="PeachPuff">PeachPuff</option>
644 <option value="Peru">Peru</option>
645 <option value="Pink">Pink</option>
646 <option value="Plum">Plum</option>
647 <option value="PowderBlue">PowderBlue</option>
648 <option value="Purple">Purple</option>
649 <option value="RebeccaPurple">RebeccaPurple</option>
650 <option value="Red">Red</option>
651 <option value="RosyBrown">RosyBrown</option>
652 <option value="RoyalBlue">RoyalBlue</option>
653 <option value="SaddleBrown">SaddleBrown</option>
654 <option value="Salmon">Salmon</option>
655 <option value="SandyBrown">SandyBrown</option>
656 <option value="SeaGreen">SeaGreen</option>
657 <option value="SeaShell">SeaShell</option>
658 <option value="Sienna">Sienna</option>
659 <option value="Silver">Silver</option>
660 <option value="SkyBlue">SkyBlue</option>
661 <option value="SlateBlue">SlateBlue</option>
662 <option value="SlateGray">SlateGray</option>
663 <option value="SlateGrey">SlateGrey</option>
664 <option value="Snow">Snow</option>
665 <option value="SpringGreen">SpringGreen</option>
666 <option value="SteelBlue">SteelBlue</option>
667 <option value="Tan">Tan</option>
668 <option value="Teal">Teal</option>
669 <option value="Thistle">Thistle</option>
670 <option value="Tomato">Tomato</option>
671 <option value="Turquoise">Turquoise</option>
672 <option value="Violet">Violet</option>
673 <option value="Wheat">Wheat</option>
674 <option value="White">White</option>
675 <option value="WhiteSmoke">WhiteSmoke</option>
676 <option value="Yellow">Yellow</option>
677 <option value="YellowGreen">YellowGreen</option>
678 </xml>
679 <xml name="param_matplotlib_pyplot_edgecolors">
680 <param argument="edgecolors" type="select" label="Edge color of the marker" help="">
681 <option value="face">The edge color will always be the same as the face color</option>
682 <option value="none">No patch boundary will be drawn</option>
683 <expand macro="matplotlib_color"/>
684 </param>
685 </xml>
686 <xml name="param_alpha">
687 <param argument="alpha" type="float" value="" min="0" max="1" optional="true" label="Alpha blending value" help="Between 0 (transparent) and 1 (opaque)"/>
688 </xml>
689 <xml name="param_vmin">
690 <param argument="vmin" type="float" value="" optional="true" label="Minimum value to normalize luminance data" help="If not set, it is inferred from the data and other keyword arguments"/>
691 </xml>
692 <xml name="param_vmax">
693 <param argument="vmax" type="float" value="" optional="true" label="Maximum value to normalize luminance data" help="If not set, it is inferred from the data and other keyword arguments"/>
694 </xml>
695 <xml name="section_matplotlib_pyplot_scatter">
696 <section name="matplotlib_pyplot_scatter" title="Parameters for matplotlib.pyplot.scatter">
697 <!--<param argument="marker" type="select" label="Marker style" help="">
698 <option value="o">o</option>
699 <option value="v">v</option>
700 <option value="^">^</option>
701 <option value="8">8</option>
702 <option value="s">s</option>
703 <option value="p">p</option>
704 <option value="*">*</option>
705 <option value="h">h</option>
706 <option value="H">H</option>
707 <option value="D">D</option>
708 <option value="d">d</option>
709 <option value="P">P</option>
710 <option value="X">X</option>
711 </param>-->
712 <expand macro="param_alpha"/>
713 <expand macro="param_vmin"/>
714 <expand macro="param_vmax"/>
715 <param argument="linewidths" type="float" value="0" label="Linewidth of the marker edges" help=""/>
716 <expand macro="param_matplotlib_pyplot_edgecolors"/>
717 </section>
718 </xml>
719 <token name="@CMD_params_matplotlib_pyplot_scatter@"><![CDATA[
720 #if $method.matplotlib_pyplot_scatter.vmin
721 vmin=$method.matplotlib_pyplot_scatter.vmin,
722 #end if
723 #if $method.matplotlib_pyplot_scatter.vmax
724 vmax=$method.matplotlib_pyplot_scatter.vmax,
725 #end if
726 #if $method.matplotlib_pyplot_scatter.alpha
727 alpha=$method.matplotlib_pyplot_scatter.alpha,
728 #end if
729 linewidths=$method.matplotlib_pyplot_scatter.linewidths,
730 edgecolors='$method.matplotlib_pyplot_scatter.edgecolors'
731 ]]></token>
732 <xml name="section_violin_plots">
733 <section name="violin_plot" title="Violin plot attributes">
734 <conditional name="stripplot">
735 <param argument="stripplot" type="select" label="Add a stripplot on top of the violin plot" help="">
736 <option value="True">Yes</option>
737 <option value="False">No</option>
738 </param>
739 <when value="True">
740 <conditional name="jitter">
741 <param argument="jitter" type="select" label="Add a jitter to the stripplot" help="">
742 <option value="True">Yes</option>
743 <option value="False">No</option>
744 </param>
745 <when value="True">
746 <param argument="size" type="integer" min="0" value="1" label="Size of the jitter points" help=""/>
747 </when>
748 <when value="False"/>
749 </conditional>
750 </when>
751 <when value="False"/>
752 </conditional>
753 <conditional name="multi_panel">
754 <param argument="multi_panel" type="select" label="Display keys in multiple panels" help="Also when `groupby is not provided">
755 <option value="True">Yes</option>
756 <option value="False" selected="true">No</option>
757 </param>
758 <when value="True">
759 <param argument="width" type="integer" min="0" value="" optional="true" label="Width of the figure" help=""/>
760 <param argument="height" type="integer" min="0" value="" optional="true" label="Height of the figure" help=""/>
761 </when>
762 <when value="False"/>
763 </conditional>
764 <param argument="scale" type="select" label="Method used to scale the width of each violin">
765 <option value="area">area: each violin will have the same area</option>
766 <option value="count">count: the width of the violins will be scaled by the number of observations in that bin</option>
767 <option value="width" selected="true">width: each violin will have the same width</option>
768 </param>
769 </section>
770 </xml>
771 <token name="@CMD_params_violin_plots@"><![CDATA[
772 stripplot=$method.violin_plot.stripplot.stripplot,
773 #if $method.violin_plot.stripplot.stripplot == "True"
774 jitter=$method.violin_plot.stripplot.jitter.jitter,
775 #if $method.violin_plot.stripplot.jitter.jitter == "True"
776 size=$method.violin_plot.stripplot.jitter.size,
777 #end if
778 #end if
779 multi_panel=$method.violin_plot.multi_panel.multi_panel,
780 #if $method.multi_panel.violin_plot.multi_panel == "True" and $method.violin_plot.multi_panel.width and $method.violin_plot.multi_panel.height
781 figsize=($method.violin_plot.multi_panel.width, $method.violin_plot.multi_panel.height)
782 #end if
783 scale='$method.violin_plot.scale',
784 ]]></token>
785 <xml name="seaborn_violinplot">
786 <section name="seaborn_violinplot" title="Parameters for seaborn.violinplot">
787 <param argument="bw" type="select" label="Name of a reference rule when computing the kernel bandwidth">
788 <option value="scott">scott</option>
789 <option value="silverman">silverman</option>
790 </param>
791 <param argument="orient" type="select" optional="true" label="Orientation of the plot">
792 <option value="v">vertical</option>
793 <option value="h">horizontal</option>
794 </param>
795 <param argument="linewidth" type="float" value="0" label="Width of the gray lines that frame the plot elements" help=""/>
796 <param argument="color" type="select" label="Color for all of the elements" help="">
797 <expand macro="matplotlib_color"/>
798 </param>
799 <param argument="palette" type="select" label="Colors to use for the different levels of the hue variable" help="">
800 <expand macro="matplotlib_pyplot_colormap"/>
801 </param>
802 <param argument="saturation" type="float" value="0.75" min="0" max="1" label="Proportion of the original saturation to draw colors at" help=""/>
803 </section>
804 </xml>
805 <token name="@CMD_params_seaborn_violinplot@"><![CDATA[
806 bw='$method.seaborn_violinplot.bw',
807 #if $method.seaborn_violinplot.orient
808 orient='$method.seaborn_violinplot.orient',
809 #end if
810 linewidth=$method.seaborn_violinplot.linewidth,
811 color='$method.seaborn_violinplot.color',
812 palette='$method.seaborn_violinplot.palette',
813 saturation=$method.seaborn_violinplot.saturation,
814 ]]></token>
815 <xml name="param_color">
816 <param argument="color" type="text" value="" optional="true" label="Keys for annotations of observations/cells or variables/genes`" help="One or a list of comma-separated index or key from either `.obs` or `.var`"/>
817 </xml>
818 <token name="@CMD_param_color@"><![CDATA[
819 #if str($method.color) != ''
820 #set $color = ([x.strip() for x in str($method.color).split(',')])
821 color=$color,
822 #else
823 color=None,
824 #end if
825 ]]></token>
826 <xml name="pl_groups">
827 <param argument="groups" type="text" value="" optional="true" label="Categorical observation annotations, comma-separated" help=""/>
828 </xml>
829 <token name="@CMD_params_pl_groups@"><![CDATA[
830 #if str($method.groups) != ''
831 #set $groups=([x.strip() for x in str($method.groups).split(',')])
832 groups=$groups,
833 #else
834 groups=None,
835 #end if
836 ]]></token>
837 <xml name="pl_components">
838 <repeat name="components" title="Component">
839 <param argument="axis1" type="text" value="1" label="Axis 1" help=""/>
840 <param argument="axis2" type="text" value="2" label="Axis 2" help=""/>
841 </repeat>
842 </xml>
843 <token name="@CMD_params_pl_components@"><![CDATA[
844 #if len($method.plot.components) > 0
845 #set $components=[]
846 #for $i, $s in enumerate($method.plot.components)
847 #silent $components.append(str($s.axis1) + ',' + str($s.axis2))
848 #end for
849 components=$components,
850 #else
851 components=None,
852 #end if
853 ]]>
854 </token>
855 <xml name="param_projection">
856 <param argument="projection" type="select" label="Projection of plot" help="">
857 <option value="2d">2d</option>
858 <option value="3d">3d</option>
859 </param>
860 </xml>
861 <xml name="param_legend_loc">
862 <param argument="legend_loc" type="select" label="Location of legend" help="">
863 <option value="none">none</option>
864 <option value="right margin" selected="true">right margin</option>
865 <option value="on data">on data</option>
866 <option value="on data export">on data export</option>
867 <option value="best">best</option>
868 <option value="upper right">upper right</option>
869 <option value="upper left">upper left</option>
870 <option value="lower left">lower left</option>
871 <option value="lower right">lower right</option>
872 <option value="center left">center left</option>
873 <option value="center right">center right</option>
874 <option value="lower center">lower center</option>
875 <option value="upper center">upper center</option>
876 <option value="center">center</option>
877 </param>
878 </xml>
879 <xml name="param_legend_fontsize">
880 <param argument="legend_fontsize" type="integer" min="0" value="1" label="Legend font size" help=""/>
881 </xml>
882 <xml name="param_legend_fontweight">
883 <param argument="legend_fontweight" type="select" label="Legend font weight" help="">
884 <option value="light">light</option>
885 <option value="normal" selected="true">normal</option>
886 <option value="medium">medium</option>
887 <option value="semibold">semibold</option>
888 <option value="bold">bold</option>
889 <option value="heavy">heavy</option>
890 <option value="black">black</option>
891 </param>
892 </xml>
893 <xml name="param_palette">
894 <param argument="palette" type="select" label="Colors to use for plotting g categorical annotation groups" help="">
895 <expand macro="matplotlib_pyplot_colormap"/>
896 </param>
897 </xml>
898 <xml name="param_color_map">
899 <param argument="color_map" type="select" label="Colors to use for plotting categorical annotation groups" help="">
900 <expand macro="matplotlib_pyplot_colormap"/>
901 </param>
902 </xml>
903 <xml name="param_frameon">
904 <param argument="frameon" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Draw a frame around the scatter plot?" help=""/>
905 </xml>
906 <xml name="param_right_margin">
907 <param argument="right_margin" type="float" value="1" label="Width of the space right of each plotting panel" help=""/>
908 </xml>
909 <xml name="param_left_margin">
910 <param argument="left_margin" type="float" value="1" label="Width of the space left of each plotting panel" help=""/>
911 </xml>
912 <xml name="param_size">
913 <param argument="size" type="float" value="1" label="Point size" help=""/>
914 </xml>
915 <xml name="param_title">
916 <param argument="title" type="text" value="" optional="true" label="Title for panels" help="Titles must be separated by a comma"/>
917 </xml>
918 <xml name="param_sort_order">
919 <param argument="sort_order" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Sort order?" help="For continuous annotations used as color parameter, plot data points with higher values on top of others."/>
920 </xml>
921 <xml name="param_sort_order">
922 <param argument="sort_order" type="boolean" truevalue="True" falsevalue="False" checked="true" label="Sort order?" help="For continuous annotations used as color parameter, plot data points with higher values on top of others."/>
923 </xml>
924 <xml name="param_ncols">
925 <param argument="ncols" type="integer" min="0" value="4" label="Number of panels per row" help=""/>
926 </xml>
927 <xml name="param_wspace">
928 <param argument="wspace" type="float" min="0" value="0.1" label="Width of the space between multiple panels" help=""/>
929 </xml>
930 <xml name="param_hspace">
931 <param argument="hspace" type="float" min="0" value="0.25" label="Geight of the space between multiple panels" help=""/>
932 </xml>
933 <xml name="pl_edges">
934 <conditional name="edges">
935 <param argument="edges" type="select" label="Show edges?">
936 <option value="True">Yes</option>
937 <option value="False" selected="true">No</option>
938 </param>
939 <when value="True">
940 <param name="edges_width" type="float" min="0" value="0.1" label="Width of edges"/>
941 <param name="edges_color" type="select" label="Color of edges">
942 <expand macro="matplotlib_color"/>
943 </param>
944 </when>
945 <when value="False"/>
946 </conditional>
947 </xml>
948 <token name="@CMD_pl_edges@"><![CDATA[
949 #if str($method.edges.edges) == 'True'
950 edges=True,
951 edges_width=$method.edges.edges_width,
952 edges_color='$method.edges.edges_color',
953 #else
954 edges=False,
955 #end if
956 ]]>
957 </token>
958 <xml name="param_arrows">
959 <param name="arrows" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Show arrows?" help="It requires to run `tl.rna_velocity` before."/>
960 </xml>
961 <xml name="param_cmap">
962 <param argument="cmap" type="select" label="Colors to use for plotting categorical annotation groups" help="">
963 <expand macro="matplotlib_pyplot_colormap"/>
964 </param>
965 </xml>
966 <xml name="pl_attribute_section">
967 <section name="plot" title="Plot attributes">
968 <expand macro="pl_components"/>
969 <expand macro="param_projection"/>
970 <expand macro="param_legend_loc"/>
971 <expand macro="param_legend_fontsize"/>
972 <expand macro="param_legend_fontweight"/>
973 <expand macro="param_size"/>
974 <expand macro="param_palette"/>
975 <expand macro="param_frameon"/>
976 <expand macro="param_ncols"/>
977 <expand macro="param_wspace"/>
978 <expand macro="param_hspace"/>
979 <expand macro="param_title"/>
980 </section>
981 </xml>
982 <token name="@CMD_pl_attribute_section@"><![CDATA[
983 projection='$method.plot.projection',
984 legend_loc='$method.plot.legend_loc',
985 legend_fontsize=$method.plot.legend_fontsize,
986 legend_fontweight='$method.plot.legend_fontweight',
987 size=$method.plot.size,
988 palette='$method.plot.palette',
989 frameon=$method.plot.frameon,
990 ncols=$method.plot.ncols,
991 wspace=$method.plot.wspace,
992 hspace=$method.plot.hspace,
993 #if $method.plot.title
994 title='$method.plot.title',
995 #end if
996 ]]>
997 </token>
998 <xml name="inputs_paga">
999 <param argument="threshold" type="float" min="0" value="0.01" label="Threshold to draw edges" help="Do not draw edges for weights below this threshold. Set to 0 if you want all edges. Discarding low-connectivity edges helps in getting a much clearer picture of the graph."/>
1000 <expand macro="pl_groups"/>
1001 <param argument="color" type="text" value="" label="The node colors" help="Gene name or obs. annotation, and also plots the degree of the abstracted graph when passing 'degree_dashed', 'degree_solid'."/>
1002 <param argument="pos" type="data" format="tabular,csv,tsv" optional="true" label="Two-column tabular file storing the x and y coordinates for drawing" help=""/>
1003 <param argument="labels" type="text" value="" label="Comma-separated node labels" help="If none is provided, this defaults to the group labels stored in the categorical for which `tl.paga` has been computed."/>
1004 <param argument="layout" type="select" value="" label="Plotting layout" help="">
1005 <option value="fa">fa: ForceAtlas2</option>
1006 <option value="fr">fr: Fruchterman-Reingold</option>
1007 <option value="fr">rt: stands for Reingold Tilford</option>
1008 <option value="fr">eq_tree: equally spaced tree</option>
1009 </param>
1010 <param argument="init_pos" type="data" format="tabular,csv,tsv" optional="true" label="Two-column tabular file storing the x and y coordinates for initializing the layout" help=""/>
1011 <param argument="random_state" type="integer" value="0" label="Random state" help="For layouts with random initialization like 'fr', change this to use different intial states for the optimization. If `None`, the initial state is not reproducible."/>
1012 <param argument="root" type="text" value="" label="Comma-separated roots" help="If choosing a tree layout, this is the index of the root node or a list of root node indices. If this is a non-empty vector then the supplied node IDs are used as the roots of the trees (or a single tree if the graph is connected). If this is `None` or an empty list, the root vertices are automatically calculated based on topological sorting."/>
1013 <param argument="transitions" type="text" value="" label="Key corresponding to the matrix storing the arrows" help="Key for `.uns['paga']`, e.g. 'transistions_confidence'"/>
1014 <param argument="solid_edges" type="text" value="paga_connectivities" label="Key corresponding to the matrix storing the edges to be drawn solid black" help="Key for `.uns['paga']`"/>
1015 <param argument="dashed_edges" type="text" value="" optional="true" label="Key corresponding to the matrix storing the edges to be drawn dashed grey" help="Key for `.uns['paga']`. If not set, no dashed edges are drawn."/>
1016 <param argument="single_component" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Restrict to largest connected component?" help=""/>
1017 <param argument="fontsize" type="integer" min="0" value="1" label="Font size for node labels" help=""/>
1018 <param argument="node_size_scale" type="float" min="0" value="1.0" label="Size of the nodes" help=""/>
1019 <param argument="node_size_power" type="float" min="0" value="0.5" label="Power with which groups sizes influence the radius of the nodes" help=""/>
1020 <param argument="edge_width_scale" type="float" min="0" value="5" label="Scale for edge width" help=""/>
1021 <param argument="min_edge_width" type="float" min="0" value="" optional="true" label="Min width of solid edges" help=""/>
1022 <param argument="max_edge_width" type="float" min="0" value="" optional="true" label="Max width of solid and dashed edges" help=""/>
1023 <param argument="arrowsize" type="integer" min="0" value="30" label="Arrow size" help="For directed graphs, choose the size of the arrow head head's length and width."/>
1024 <param argument="normalize_to_color" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Normalize categorical plots to color or the underlying grouping?" help=""/>
1025 <expand macro="param_cmap"/>
1026 <expand macro="param_title"/>
1027 <expand macro="param_frameon"/>
1028 </xml>
1029 <token name="@CMD_params_pl_paga@"><![CDATA[
1030 threshold=$method.threshold,
1031 #if str($method.groups) != ''
1032 #set $groups=([x.strip() for x in str($method.groups).split(',')])
1033 groups=$groups,
1034 #else
1035 groups=None,
1036 #end if
1037 color='$method.color',
1038 #if $method.pos
1039 pos=np.fromfile($method.pos, dtype=dt),
1040 #end if
1041 #if str($method.labels) != ''
1042 #set $labels=([x.strip() for x in str($method.labels).split(',')])
1043 labels=$labels,
1044 #end if
1045 layout='$method.layout',
1046 #if $method.init_pos
1047 init_pos=np.fromfile($method.init_pos, dtype=dt),
1048 #end if
1049 random_state=$method.random_state,
1050 #if str($method.root) != ''
1051 #set $root=([int(x.strip()) for x in str($method.root).split(',')])
1052 root=$root,
1053 #end if
1054 #if $method.transitions
1055 transitions='$method.transitions',
1056 #end if
1057 solid_edges='$method.solid_edges',
1058 #if $method.dashed_edges
1059 dashed_edges='$method.dashed_edges',
1060 #end if
1061 single_component=$method.single_component,
1062 fontsize=$method.fontsize,
1063 node_size_scale=$method.node_size_scale,
1064 node_size_power=$method.node_size_power,
1065 edge_width_scale=$method.edge_width_scale,
1066 #if $method.min_edge_width
1067 min_edge_width=$method.min_edge_width,
1068 #end if
1069 #if $method.max_edge_width
1070 max_edge_width=$method.max_edge_width,
1071 #end if
1072 arrowsize=$method.arrowsize,
1073 normalize_to_color=$method.normalize_to_color,
1074 cmap='$method.cmap',
1075 #if $method.title
1076 title='$method.title',
1077 #end if
1078 frameon=$method.frameon,
1079 ]]>
1080 </token>
1081 <xml name="param_swap_axes">
1082 <param argument="swap_axes" type="boolean" truevalue="True" falsevalue="False" checked="false" label="Swap axes?" help="By default, the x axis contains `var_names` (e.g. genes) and the y axis the `groupby` categories (if any). By setting `swap_axes` then x are the `groupby` categories and y the `var_names`."/>
1083 </xml>
1084 </macros>