comparison omero_get_value.xml @ 0:1ae349b83c08 draft

planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
author ufz
date Tue, 22 Oct 2024 11:52:46 +0000
parents
children 9a50e57339d8
comparison
equal deleted inserted replaced
-1:000000000000 0:1ae349b83c08
1 <tool id="omero_get_value" name="OMERO get Object" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT">
2 <description> with ezomero </description>
3 <macros>
4 <import>macros.xml</import>
5 <token name="@VERSION_SUFFIX@">0</token>
6 </macros>
7 <xrefs>
8 <xref type="bio.tools">omero</xref>
9 </xrefs>
10 <expand macro="ezomero_requirements"/>
11 <command detect_errors="exit_code"><![CDATA[
12 python '$__tool_directory__/omero_get_value.py'
13 --credential-file '$credentials'
14 @HOST_PORT@
15 --obj_type '$obj_type'
16 #if $ids_input.ids_format == "values"
17 --ids ${str($ids_input.ids).replace(',', ' ')}
18 #else
19 --ids_path '$ids_input.ids_path'
20 #end if
21 --tsv_file '$tsv'
22 ]]></command>
23 <configfiles>
24 <expand macro="credentials"/>
25 </configfiles>
26 <inputs>
27 <expand macro="host_port"/>
28 <param argument="obj_type" type="select" optional="false" label="Type of object to fetch:">
29 <option value="Annotation">Annotation</option>
30 <option value="Tag">Tag</option>
31 <option value="Table">Table</option>
32 </param>
33 <conditional name="ids_input">
34 <param name="ids_format" type="select" label="How do you provide the ID(s) of the OMERO object?">
35 <option value="values">Comma separated values</option>
36 <option value="file">From a dataset (one per line)</option>
37 </param>
38 <when value="values">
39 <param argument="--ids" type="text" value="" label="ID(s) of the object(s) to fetch on OMERO separated by comma">
40 <validator type="regex" message="Enter a valid list of IDs (i.e. 2,45,56,67)">^(\d+)(,\d+)*$</validator>
41 </param>
42 </when>
43 <when value="file">
44 <param argument="--ids_path" type="data" format="txt,tabular" label="Dataset with ID(s) of the object(s) to fetch on OMERO (one per line)"/>
45 </when>
46 </conditional>
47 </inputs>
48 <outputs>
49 <data name="tsv" format="tabular"/>
50 </outputs>
51 <tests>
52 <test>
53 <param name="omero_host" value="host.docker.internal"/>
54 <param name="omero_port" value="6064"/>
55 <param name="obj_type" value="Tag"/>
56 <conditional name="ids_input">
57 <param name="ids_format" value="values"/>
58 <param name="ids" value="1"/>
59 </conditional>
60 <param name="test_username" value="root"/>
61 <param name="test_password" value="omero"/>
62 <output name="tsv" ftype="tabular">
63 <assert_contents>
64 <has_text text="test_tag"/>
65 <has_n_lines n="2"/>
66 </assert_contents>
67 </output>
68 </test>
69 </tests>
70 <help>
71 Description
72 -----------
73
74 Tool to fetch Annotation, Tag and Tables from IDs.
75
76 The IDs can be obtained with the tool OMERO get IDs with ezomero
77
78 </help>
79 <citations>
80 <citation type="doi">10.1038/nmeth.1896</citation>
81 </citations>
82 </tool>