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