annotate omero_import.xml @ 2:267227e757cb 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:50 +0000
parents f762de618b1f
children 83ccd2b525e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
1 <tool id="omero_import" name="OMERO Image Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01" license="MIT">
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
2 <description> with omero-py </description>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
3 <macros>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
4 <token name="@TOOL_VERSION@">5.18.0</token>
2
267227e757cb planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 5b1b30d409355cee98485815c1dd4ac48649bcc1
ufz
parents: 1
diff changeset
5 <token name="@VERSION_SUFFIX@">1</token>
0
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
6 </macros>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
7 <xrefs>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
8 <xref type="bio.tools">omero</xref>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
9 </xrefs>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
10 <requirements>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
11 <requirement type="package" version="@TOOL_VERSION@">omero-py</requirement>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
12 <!-- openjdk is needed: https://github.com/conda-forge/omero-py-feedstock/pull/16 -->
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
13 <requirement type="package" version="21.0.2">openjdk</requirement>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
14 </requirements>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
15 <command detect_errors="exit_code"><![CDATA[
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
16 #import re
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
17
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
18 mkdir folder &&
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
19 #for $image in $folder:
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
20 #set image = $image
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
21 #set image_identifier = re.sub('[^\s\w\-]', '_', str($image.element_identifier))
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
22 ln -s '${image}' folder/'${image_identifier}.$image.ext' &&
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
23 #end for
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
24
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
25 omero import folder -T Dataset:name:$dataset_name
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
26 -s $omero_host
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
27 -p $omero_port
2
267227e757cb planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 5b1b30d409355cee98485815c1dd4ac48649bcc1
ufz
parents: 1
diff changeset
28 -u $__user__.extra_preferences.get('omero_account|username', $test_username)
267227e757cb planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 5b1b30d409355cee98485815c1dd4ac48649bcc1
ufz
parents: 1
diff changeset
29 -w $__user__.extra_preferences.get('omero_account|password', $test_password)
0
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
30 > $log &&
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
31
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
32 omero logout
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
33 ]]></command>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
34 <inputs>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
35 <param name="folder" type="data" format="avi,bmp,btf,cif,csv,eps,fits,fli,gif,hdr,html,jp2,jpg,mov,mrc,ndpi,nhdr,nrrd,ome.tiff,par,pbm,pcx,pgm,png,ppm,psd,scn,sif,svs,tf2,tf8,tif,tif,tiff,top,txt,vms,wav,xml,zip" multiple="true" optional="false" label="Images to import into OMERO"/>
1
f762de618b1f planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit b9d952c8874f75f738ca4121d7e5274a7946035a
ufz
parents: 0
diff changeset
36 <param name="dataset_name" type="text" optional="false" label="Target Dataset Name"/>
0
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
37 <param name="omero_host" type="text" label="OMERO host URL">
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
38 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator>
2
267227e757cb planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 5b1b30d409355cee98485815c1dd4ac48649bcc1
ufz
parents: 1
diff changeset
39 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator>
0
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
40 </param>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
41 <param name="omero_port" type="integer" value="4064" optional="false" label="OMERO port"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
42 <param name="test_username" type="hidden" value=""/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
43 <param name="test_password" type="hidden" value=""/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
44 </inputs>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
45 <outputs>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
46 <data name="log" format="txt"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
47 </outputs>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
48 <tests>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
49 <test>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
50 <param name="folder" value="input1.tif,input2.tif"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
51 <param name="dataset_name" value="galaxy_test_upload"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
52 <param name="omero_host" value="host.docker.internal"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
53 <param name="omero_port" value="6064"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
54 <param name="test_username" value="root"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
55 <param name="test_password" value="omero"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
56 <output name="log" value="omero_output.txt" ftype="txt">
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
57 <assert_contents>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
58 <has_n_lines n="2"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
59 </assert_contents>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
60 </output>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
61 <assert_stderr>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
62 <has_text_matching expression="IMPORT_DONE.*input1.tif"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
63 <has_text_matching expression="IMPORT_DONE.*input2.tif"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
64 <has_text text="files uploaded, 2 filesets created, 2 images imported, 0 errors"/>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
65 </assert_stderr>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
66 </test>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
67 </tests>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
68 <help>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
69 - This tool allows the import of images into a user-defined OMERO server
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
70
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
71 - The user can define an existing dataset name where the images will be imported
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
72
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
73 - If the dataset does not exist, a new one will be created
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
74 </help>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
75 <citations>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
76 <citation type="doi">10.1038/nmeth.1896</citation>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
77 </citations>
b3d29ef12aed planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
ufz
parents:
diff changeset
78 </tool>