annotate omero_import.xml @ 1:f762de618b1f 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:30 +0000
parents b3d29ef12aed
children 267227e757cb
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>
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
5 <token name="@VERSION_SUFFIX@">0</token>
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
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
28 -u $__user__.extra_preferences.get('omero|username', $test_username)
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
29 -w $__user__.extra_preferences.get('omero|password', $test_password)
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>
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
39 </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
40 <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
41 <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
42 <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
43 </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
44 <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
45 <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
46 </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
47 <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
48 <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
49 <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
50 <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
51 <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
52 <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
53 <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
54 <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
55 <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
56 <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
57 <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
58 </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
59 </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
60 <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
61 <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
62 <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
63 <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
64 </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
65 </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
66 </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
67 <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
68 - 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
69
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 - 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
71
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 - 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
73 </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
74 <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
75 <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
76 </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
77 </tool>