Mercurial > repos > goeckslab > squidpy_scatter
comparison squidpy_scatter.xml @ 0:6fe0d4f464f4 draft
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/squidpy commit 721eaced787aa3b04d96ad91f6b4540f26b23949
author | goeckslab |
---|---|
date | Thu, 11 Jul 2024 22:22:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6fe0d4f464f4 |
---|---|
1 <tool id="squidpy_scatter" name="Create spatial scatterplot" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
2 <description>with Squidpy</description> | |
3 <macros> | |
4 <import>main_macros.xml</import> | |
5 </macros> | |
6 <edam_operations> | |
7 <edam_operation>operation_3443</edam_operation> | |
8 </edam_operations> | |
9 <expand macro="squidpy_requirements"/> | |
10 <expand macro="macro_stdio" /> | |
11 <version_command>echo "@TOOL_VERSION@"</version_command> | |
12 <command detect_errors="aggressive"> | |
13 <![CDATA[ | |
14 export TQDM_DISABLE=True && | |
15 python '$__tool_directory__/squidpy_scatter.py' | |
16 --inputs '$inputs' | |
17 --output_plot image.png | |
18 ]]> | |
19 </command> | |
20 <configfiles> | |
21 <inputs name="inputs" data_style="paths"/> | |
22 </configfiles> | |
23 <inputs> | |
24 <param name="anndata" type="data" format="h5ad" label="Select the input anndata" /> | |
25 <param name="x_coord" type="text" value="X_centroid" label="Key for X spatial coordinate in adata.obs" /> | |
26 <param name="y_coord" type="text" value="Y_centroid" label="Key for Y spatial coordinate in adata.obs" /> | |
27 <param argument="color" type="text" value="phenotype" label="Key for annotations in adata.obs or variables/genes" /> | |
28 <section name="plot_opts" title="Advanced Plot Options" expanded="false"> | |
29 <param argument="groups" type="text" optional="true" label="For discrete annotation in color, select which values to plot" /> | |
30 <param argument="use_raw" type="boolean" checked="false" label="Use adata.raw.X instead of adata.X" /> | |
31 <param argument="crop_coord" type="text" optional="true" label="Coordinates to crop scatterplot by" help="x1,y1,x2,y2" /> | |
32 </section> | |
33 <section name="legend_opts" title="Legend Options" expanded="false"> | |
34 <param argument="legend_loc" type="text" value="right margin" optional="true" label="Location of the legend" /> | |
35 <param argument="legend_fontsize" type="integer" value="8" optional="true" label="Font size for the legend" /> | |
36 <param argument="legend_fontweight" type="text" value="bold" optional="true" label="Font weight for the legend" /> | |
37 <param argument="legend_fontoutline" type="integer" value="" optional="true" label="Font outline for the legend" /> | |
38 <param argument="legend_na" type="boolean" checked="true" label="Show NA values in the legend" /> | |
39 </section> | |
40 <section name="aesthetic_opts" title="Figure Aesthetic Options" expanded="false"> | |
41 <param argument="size" type="integer" value="3" label="Size of the scatter point/shape" /> | |
42 <param argument="alpha" type="float" min="0.01" max="1.0" value="1.0" label="Alpha value for scatter point/shape" /> | |
43 <param argument="cmap" type="text" value="viridis" optional="true" label="Matplotlib colormap for continuous annotations" help="Refer to `matplotlib.pyplot.cmap`." /> | |
44 <param argument="colorbar" type="boolean" checked="true" label="Show the colorbar" /> | |
45 <param argument="scalebar_dx" type="float" min="0.01" max="1.0" value="" optional="true" label="Size of one pixel in units specified by scalebar_units" /> | |
46 <param argument="scalebar_units" type="text" value="" optional="true" label="Units for scalebar" /> | |
47 <param argument="title" type="text" optional="true" label="Figure title" /> | |
48 <param argument="figsize" type="text" value="" optional="true" label="Size of the figure in inches" help="width,height"/> | |
49 <param argument="dpi" type="integer" value="300" optional="true" label="Dots per inch" /> | |
50 </section> | |
51 </inputs> | |
52 <outputs> | |
53 <data from_work_dir="figures/image.png" format="png" name="output_plot" label="Squidpy spatial scatterplot on ${on_string}" /> | |
54 </outputs> | |
55 <tests> | |
56 <test> | |
57 <param name="anndata" value="imc_sn.h5ad" ftype="h5ad" /> | |
58 <param name="color" value="cell type" /> | |
59 <output name="output_plot" file="scatter_image.png" compare="sim_size" delta="2000" /> | |
60 </test> | |
61 </tests> | |
62 <help> | |
63 <![CDATA[ | |
64 This is a limited implementation of the squidpy.pl.spatial_scatter() function | |
65 | |
66 See Squidpy documentation for more information: | |
67 | |
68 https://squidpy.readthedocs.io/en/stable/index.html | |
69 ]]> | |
70 </help> | |
71 <expand macro="citations" /> | |
72 </tool> |