comparison omero_roi_import.xml @ 0:9051b91545f6 draft

planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 5b1b30d409355cee98485815c1dd4ac48649bcc1
author ufz
date Thu, 05 Sep 2024 11:55:44 +0000
parents
children e957793051a8
comparison
equal deleted inserted replaced
-1:000000000000 0:9051b91545f6
1 <tool id="omero_roi_import" name="OMERO ROI Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"
2 profile="20.01" license="MIT">
3 <description> with ezomero </description>
4 <macros>
5 <token name="@TOOL_VERSION@">5.18.0</token>
6 <token name="@VERSION_SUFFIX@">1</token>
7 </macros>
8 <xrefs>
9 <xref type="bio.tools">omero</xref>
10 </xrefs>
11 <requirements>
12 <requirement type="package" version="3.0.1">ezomero</requirement>
13 <requirement type="package" version="2.2.2">pandas</requirement>
14 <!-- openjdk is needed: https://github.com/conda-forge/omero-py-feedstock/pull/16 -->
15 <requirement type="package" version="21.0.2">openjdk</requirement>
16 </requirements>
17 <command detect_errors="exit_code"><![CDATA[
18 python '$__tool_directory__/omero_roi_upload.py'
19 --input_file '$input'
20 --image_id $id
21 --user '$__user__.extra_preferences.get("omero_account|username", $test_username)'
22 --psw '$__user__.extra_preferences.get("omero_account|password", $test_password)'
23 --host '$omero_host'
24 --port $omero_port
25 --log_file '$log'
26 ]]></command>
27 <inputs>
28 <param argument="input" type="data" format="tabular" optional="false" label="Tab File with ROIs" help="Select ROIs Tabular file"/>
29 <param argument="id" type="integer" optional="false" label="Image ID where annotate the ROIs"/>
30 <param name="omero_host" type="text" label="OMERO host URL">
31 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator>
32 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator>
33 </param>
34 <param argument="omero_port" type="integer" optional="false" value="4064" label="OMERO port"/>
35 <param name="test_username" type="hidden" value=""/>
36 <param name="test_password" type="hidden" value=""/>
37 </inputs>
38 <outputs>
39 <data name="log" format="txt"/>
40 </outputs>
41 <tests>
42 <test>
43 <param name="omero_host" value="host.docker.internal"/>
44 <param name="omero_port" value="6064"/>
45 <param name="id" value="1"/>
46 <param name="input" value="input_roi.tsv"/>
47 <param name="test_username" value="root"/>
48 <param name="test_password" value="omero"/>
49 <output name="log" value="output_table_roi.txt" ftype="txt">
50 <assert_contents>
51 <has_text text="ROI ID: 7 for row 7"/>
52 </assert_contents>
53 </output>
54 </test>
55 </tests>
56 <help>
57
58 Description
59 -----------
60
61 Tool to upload Regions of Interest (ROIs) to an OMERO server based on shape data provided
62 in a tabular format (TSV file). The tool reads the shape information from the TSV file, creates the
63 corresponding ROIs in OMERO, and links them to a specified image.
64
65 **Column Headers**:
66
67 - shape, x, y, x_rad, y_rad, width, height, label, fontSize, x1, y1, x2, y2, points, fill_color, stroke_color, stroke_width, z, c, t, roi_name, roi_description
68
69 - *Shape Type*:
70
71 The **shape** column indicates the type of shape being defined, such as Ellipse, Label, Line, Point, Polygon, Polyline, or Rectangle.
72
73 - *Position and Dimensions*:
74
75 The columns **x**, **y**, **x_rad**, **y_rad**, **width**, and **height** specify the position and dimensions of the shapes, where applicable. For example, Ellipse uses x, y, x_rad, and y_rad, while Rectangle uses x, y, width, and height.
76
77 - *Text Labels*:
78
79 The **label** and **fontSize** columns are used for the Label shape, specifying the text content and font size.
80
81 - *Line Coordinates*:
82
83 The columns **x1**, **y1**, **x2**, and **y2** are used for defining the start and end points of a Line.
84
85 - *Point Coordinates*:
86
87 The **points** column is used for defining multiple points in shapes like Polygon and Polyline. The points are listed as coordinate pairs.
88
89 - *Colors*:
90
91 The **fill_color** and **stroke_color** columns define the fill and stroke colors of the shapes in RGBA format.
92
93 - *Stroke Width*:
94
95 The **stroke_width** column specifies the width of the stroke or border around the shapes.
96
97 - *Z, C, T Coordinates*:
98
99 The **z**, **c**, and **t** columns indicate the Z-plane, channel, and time point to which the shape is associated in the image stack.
100
101 - *ROI Identification*:
102
103 The **roi_name** and **roi_description** columns provide a name and description for each ROI, allowing for easy identification and documentation within OMERO.
104
105 </help>
106 <citations>
107 <citation type="doi">10.1038/nmeth.1896</citation>
108 </citations>
109 </tool>