comparison omero_metadata_import.xml @ 0:352e9d4eaf70 draft

planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
author ufz
date Wed, 07 Aug 2024 12:54:19 +0000
parents
children 588d6fa22fc4
comparison
equal deleted inserted replaced
-1:000000000000 0:352e9d4eaf70
1 <tool id="omero_metadata_import" name="OMERO Metadata 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@">0</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 <requirement type="package" version="21.0.2">openjdk</requirement>
15 </requirements>
16 <command detect_errors="exit_code"><![CDATA[
17 python $__tool_directory__/omero_metadata_upload.py
18 --user $__user__.extra_preferences.get('omero|username', $test_username)
19 --pws $__user__.extra_preferences.get('omero|password', $test_password)
20 --host $omero_host
21 --port $omero_port
22 --obj_type $obj_type
23 --ann_type $ann_type
24 --ann_file $ann_file
25 --an_name $an_name
26 --log_file $log
27 #if $object_id_selection == "existing_object"
28 --did "$did"
29 #end if
30 ]]></command>
31 <inputs>
32 <param argument="omero_host" type="text" optional="false" label="OMERO host URL"/>
33 <param argument="omero_port" type="integer" optional="false" value="4064" label="OMERO port"/>
34 <param argument="obj_type" type="select" optional="true" label="Target Object Type">
35 <option value="project">Project</option>
36 <option value="screen">Screen</option>
37 <option value="dataset">Dataset</option>
38 <option value="image">Image</option>
39 </param>
40 <conditional name="object_id">
41 <param name="object_id_selection" type="select" label="Selection" help="Create a new OMERO object or target an existing one">
42 <option value="new_object">Create new object</option>
43 <option value="existing_object">Target an existing object</option>
44 </param>
45 <when value="new_object"/>
46 <when value="existing_object">
47 <param name="did" type="integer" value="" optional="false" label="Object ID"/>
48 </when>
49 </conditional>
50 <param argument="ann_type" type="select" optional="false" label="Annotation type" help="Select annotation format">
51 <option value="table">Table</option>
52 <option value="KV">Key-Value Pairs</option>
53 </param>
54 <param argument="ann_file" type="data" format="tabular" optional="false" label="Annotation file" help="Select annotation file"/>
55 <param argument="an_name" type="text" optional="false" label="Annotation Name"/>
56 <param name="test_username" type="hidden" value=""/>
57 <param name="test_password" type="hidden" value=""/>
58 </inputs>
59 <outputs>
60 <data name="log" format="txt"/>
61 </outputs>
62 <tests>
63 <test>
64 <param name="omero_host" value="host.docker.internal"/>
65 <param name="omero_port" value="6064"/>
66 <param name="obj_type" value="project"/>
67 <param name="ann_type" value="table"/>
68 <param name="object_id_selection" value="new_object"/>
69 <param name="ann_file" value="metadata.tsv"/>
70 <param name="an_name" value="Table_Test"/>
71 <param name="test_username" value="root"/>
72 <param name="test_password" value="omero"/>
73 <output name="log" value="output_table_import.txt" ftype="txt">
74 <assert_contents>
75 <has_text text="SUCCESS: Successfully uploaded metadata for project"/>
76 </assert_contents>
77 </output>
78 </test>
79 <test>
80 <param name="omero_host" value="host.docker.internal"/>
81 <param name="omero_port" value="6064"/>
82 <param name="obj_type" value="dataset"/>
83 <param name="ann_type" value="KV"/>
84 <param name="object_id_selection" value="new_object"/>
85 <param name="ann_file" value="metadata.tsv"/>
86 <param name="an_name" value="KV_Test"/>
87 <param name="test_username" value="root"/>
88 <param name="test_password" value="omero"/>
89 <output name="log" value="output_KV_import.txt" ftype="txt">
90 <assert_contents>
91 <has_text text="SUCCESS: Successfully uploaded metadata for dataset"/>
92 </assert_contents>
93 </output>
94 </test>
95 <test>
96 <param name="omero_host" value="host.docker.internal"/>
97 <param name="omero_port" value="6064"/>
98 <param name="obj_type" value="dataset"/>
99 <param name="ann_type" value="KV"/>
100 <param name="object_id_selection" value="existing_object"/>
101 <param name="did" value="1"/>
102 <param name="ann_file" value="metadata.tsv"/>
103 <param name="an_name" value="Additional_KV_Values"/>
104 <param name="test_username" value="root"/>
105 <param name="test_password" value="omero"/>
106 <output name="log" value="output_target_import.txt" ftype="txt">
107 <assert_contents>
108 <has_text text="SUCCESS: Successfully uploaded metadata for dataset"/>
109 </assert_contents>
110 </output>
111 </test>
112 </tests>
113 <help>
114 Description
115 -----------
116
117 Tool to import metadata (Table and K/V pairs) into user defined OMERO.server.
118 Metadata can be attached to an existing OMERO object (Project, Dataset, Screen, or Image).
119 Optionally, a new OMERO object can be created before uploading the metadata.
120 If the object does not exist, a new one will be created.
121
122 **Tabular metadata file example**
123
124 - Table
125
126 +------------+---------------+---------------+
127 | image_id | attribute_1 | attribute_2 |
128 +============+===============+===============+
129 | 235 | 0 | 1 |
130 +------------+---------------+---------------+
131 | 564 | 1 | 1 |
132 +------------+---------------+---------------+
133 | 120 | 0 | 1 |
134 +------------+---------------+---------------+
135
136 - Key-Value Pairs
137
138 +--------+---------+----------+
139 | Key1 | Key2 | Key3 |
140 +========+=========+==========+
141 | Value1 | Value2 | Value3 |
142 +--------+---------+----------+
143 </help>
144 <citations>
145 <citation type="doi">10.1038/nmeth.1896</citation>
146 </citations>
147 </tool>