comparison omero_roi_import.xml @ 2:4f4dc352d660 draft

planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
author ufz
date Thu, 12 Sep 2024 16:30:36 +0000
parents e957793051a8
children dfe0aae1495c
comparison
equal deleted inserted replaced
1:e957793051a8 2:4f4dc352d660
1 <tool id="omero_roi_import" name="OMERO ROI Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" 1 <tool id="omero_roi_import" name="OMERO ROI Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@"
2 profile="20.01" license="MIT"> 2 profile="20.01" license="MIT">
3 <description> with ezomero </description> 3 <description> with ezomero </description>
4 <macros> 4 <macros>
5 <token name="@TOOL_VERSION@">5.18.0</token> 5 <token name="@TOOL_VERSION@">5.18.0</token>
6 <token name="@VERSION_SUFFIX@">2</token> 6 <token name="@VERSION_SUFFIX@">3</token>
7 </macros> 7 </macros>
8 <xrefs> 8 <xrefs>
9 <xref type="bio.tools">omero</xref> 9 <xref type="bio.tools">omero</xref>
10 </xrefs> 10 </xrefs>
11 <requirements> 11 <requirements>
13 <requirement type="package" version="2.2.2">pandas</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 --> 14 <!-- openjdk is needed: https://github.com/conda-forge/omero-py-feedstock/pull/16 -->
15 <requirement type="package" version="21.0.2">openjdk</requirement> 15 <requirement type="package" version="21.0.2">openjdk</requirement>
16 </requirements> 16 </requirements>
17 <command detect_errors="exit_code"><![CDATA[ 17 <command detect_errors="exit_code"><![CDATA[
18 python '$__tool_directory__/omero_roi_upload.py' 18 python '$__tool_directory__/omero_roi_upload.py'
19 --input_file '$input' 19 --input_file '$input'
20 --image_id $id 20 --image_id $id
21 --user '$__user__.extra_preferences.get("omero_account|username", $test_username)' 21 --credential-file '$credentials'
22 --psw '$__user__.extra_preferences.get("omero_account|password", $test_password)' 22 --host '$omero_host'
23 --host '$omero_host' 23 --port $omero_port
24 --port $omero_port 24 --log_file '$log'
25 --log_file '$log'
26 ]]></command> 25 ]]></command>
26 <configfiles>
27 <configfile name="credentials"><![CDATA[
28 {
29 "username": "$__user__.extra_preferences.get('omero_account|username', $test_username)",
30 "password": "$__user__.extra_preferences.get('omero_account|password', $test_password)"
31 }
32 ]]></configfile>
33 </configfiles>
27 <inputs> 34 <inputs>
28 <param argument="input" type="data" format="tabular" optional="false" label="Tab File with ROIs" help="Select ROIs Tabular file"/> 35 <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" value="" optional="false" label="Image ID where annotate the ROIs"/> 36 <param argument="id" type="integer" value="" optional="false" label="Image ID where annotate the ROIs"/>
30 <param name="omero_host" type="text" label="OMERO host URL"> 37 <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> 38 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator>
50 <assert_contents> 57 <assert_contents>
51 <has_text text="ROI ID: 7 for row 7"/> 58 <has_text text="ROI ID: 7 for row 7"/>
52 </assert_contents> 59 </assert_contents>
53 </output> 60 </output>
54 </test> 61 </test>
62 <test>
63 <param name="omero_host" value="host.docker.internal"/>
64 <param name="omero_port" value="6064"/>
65 <param name="id" value="1"/>
66 <param name="input" value="input_roi_minimal.tsv"/>
67 <param name="test_username" value="root"/>
68 <param name="test_password" value="omero"/>
69 <output name="log" value="output_table_roi_minimal.txt" ftype="txt">
70 <assert_contents>
71 <has_text text="ROI ID: 8 for row 1"/>
72 </assert_contents>
73 </output>
74 </test>
55 </tests> 75 </tests>
56 <help> 76 <help>
57 77
58 Description 78 Description
59 ----------- 79 -----------
60 80
61 Tool to upload Regions of Interest (ROIs) to an OMERO server based on shape data provided 81 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 82 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. 83 corresponding ROIs in OMERO, and links them to a specified image.
64 84
65 **Column Headers**: 85 **Column Headers** (not all columns are required for all shapes):
66 86
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 87 - 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 88
69 - *Shape Type*: 89 - *Shape Type*:
70 90
72 92
73 - *Position and Dimensions*: 93 - *Position and Dimensions*:
74 94
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. 95 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 96
97 - *Label*:
98
99 Any ROI can be labelled using the column **label**, this label will appear on the OMERO web interface.
100
77 - *Text Labels*: 101 - *Text Labels*:
78 102
79 The **label** and **fontSize** columns are used for the Label shape, specifying the text content and font size. 103 The **label** and **fontSize** columns are used for the Label shape, specifying the text content and font size.
80 104
81 - *Line Coordinates*: 105 - *Line Coordinates*:
82 106
83 The columns **x1**, **y1**, **x2**, and **y2** are used for defining the start and end points of a Line. 107 The columns **x1**, **y1**, **x2**, and **y2** are used for defining the start and end points of a Line.
84 108
85 - *Point Coordinates*: 109 - *Point Coordinates*:
86 110
87 The **points** column is used for defining multiple points in shapes like Polygon and Polyline. The points are listed as coordinate pairs. 111 The **points** column is used for defining multiple points in shapes like Polygon and Polyline. The points are listed as coordinate pairs, like '(300,300),(350,350),(300,400)'
88 112
89 - *Colors*: 113 - *Colors*:
90 114
91 The **fill_color** and **stroke_color** columns define the fill and stroke colors of the shapes in RGBA format. 115 The **fill_color** and **stroke_color** columns define the fill and stroke colors of the shapes in RGBA format, like '(0,255,255,128)'.
92 116
93 - *Stroke Width*: 117 - *Stroke Width*:
94 118
95 The **stroke_width** column specifies the width of the stroke or border around the shapes. 119 The **stroke_width** column specifies the width of the stroke or border around the shapes.
96 120
98 122
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. 123 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 124
101 - *ROI Identification*: 125 - *ROI Identification*:
102 126
103 The **roi_name** and **roi_description** columns provide a name and description for each ROI, allowing for easy identification and documentation within OMERO. 127 The **roi_name** and **roi_description** columns provide a name and description for each ROI, allowing for easy identification and documentation within OMERO however they do not appear on the OMERO web interface.
104 128
105 </help> 129 </help>
106 <citations> 130 <citations>
107 <citation type="doi">10.1038/nmeth.1896</citation> 131 <citation type="doi">10.1038/nmeth.1896</citation>
108 </citations> 132 </citations>