annotate scale_cell_coordinates.xml @ 1:815efbdbb7b2 draft default tip

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
author goeckslab
date Mon, 15 Jul 2024 21:37:44 +0000
parents 8969e16f3701
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
1 <tool id="scale_cell_coordinates" name="Scale cell coordinates" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
1
815efbdbb7b2 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
goeckslab
parents: 0
diff changeset
2 <description>in single-cell spatial data</description>
0
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
3 <macros>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
4 <import>macros.xml</import>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
5 </macros>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
6 <edam_operations>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
7 <edam_operation>operation_3443</edam_operation>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
8 </edam_operations>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
9 <expand macro="requirements" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
10 <command detect_errors="aggressive">
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
11 <![CDATA[
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
12 python '$__tool_directory__/scale_cell_coordinates.py'
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
13 --inputs '$inputs'
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
14 --output '$output'
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
15 ]]>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
16 </command>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
17 <configfiles>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
18 <inputs name="inputs" data_style="paths"/>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
19 </configfiles>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
20 <inputs>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
21 <param name="anndata" type="data" format="h5ad" label="Input anndata file" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
22 <param name="x_coord" type="text" value="X_centroid" label="Key for X spatial coordinate in adata.obs" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
23 <param name="y_coord" type="text" value="Y_centroid" label="Key for Y spatial coordinate in adata.obs" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
24 <param name="resolution" type="float" value="" min="0.01" max="1.0" label="Value to multiply pixel coordinates by" help="Units would be target_unit/pixel (Example: um/pixel)" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
25 <param name="unit" type="text" value="um" optional="true" label="Unit for scaled coordinates" help="Will be appended to new column name (Example: 'X_centroid_um')" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
26 </inputs>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
27 <outputs>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
28 <data format="h5ad" name="output" label="Cell coordinate scaling on ${on_string}" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
29 </outputs>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
30 <tests>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
31 <test>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
32 <param name="anndata" value="pixels.h5ad" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
33 <param name="resolution" value="0.65" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
34 <output name="output" ftype="h5ad">
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
35 <assert_contents>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
36 <has_h5_keys keys="obs/X_centroid_um,obs/Y_centroid_um" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
37 </assert_contents>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
38 </output>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
39 </test>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
40 </tests>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
41 <help>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
42 <![CDATA[
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
43
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
44 This tool allows a user to scale x,y pixel coordinates to the physical distance (microns, for example)
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
45
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
46 **Inputs**
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
47 - anndata h5ad file with x,y coordinates in pixels
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
48 - column names for pixel coordinates in adata.obs
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
49 - Physical resolution of the image (microns per pixel, for example)
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
50 - Unit for the resulting physical distance ('um', for example)
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
51
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
52 **Outputs**
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
53 - anndata h5ad file with new columns, with column names formatted with
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
54 the existing column name and physical distance appended ('X_centroid_um', for example)
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
55
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
56 ]]>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
57 </help>
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
58 <expand macro="citations" />
8969e16f3701 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
diff changeset
59 </tool>