annotate omero_import.xml @ 6:42a454d4b482 draft default tip

planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 636cbb62d59819caca5bc9eab0a8ec31be5bdd46
author ufz
date Mon, 16 Dec 2024 20:56:02 +0000
parents 18b86dcdd421
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
d0c0f3c95368 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
ufz
parents: 3
diff changeset
1 <tool id="omero_import" name="OMERO Image Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT">
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
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>
4
d0c0f3c95368 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
ufz
parents: 3
diff changeset
4 <import>macros.xml</import>
d0c0f3c95368 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
ufz
parents: 3
diff changeset
5 <token name="@VERSION_SUFFIX@">3</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>
4
d0c0f3c95368 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
ufz
parents: 3
diff changeset
10 <expand macro="omeropy_requirements"/>
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
11 <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
12 #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
13
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 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
15 #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
16 #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
17 #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
18 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
19 #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
20
3
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
21 source '$credentials' &&
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
22 omero import folder -T Dataset:name:$dataset_name
4
d0c0f3c95368 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
ufz
parents: 3
diff changeset
23 -s '$omero_host'
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
24 -p $omero_port
3
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
25 -u "\$OMERO_USER"
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
26 > $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
27
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 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
29 ]]></command>
3
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
30 <configfiles>
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
31 <configfile name="credentials"><![CDATA[
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
32 export OMERO_USER="$__user__.extra_preferences.get('omero_account|username', $test_username)"
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
33 export OMERO_PASSWORD="$__user__.extra_preferences.get('omero_account|password', $test_password)"
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
34 ]]></configfile>
83ccd2b525e5 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
ufz
parents: 2
diff changeset
35 </configfiles>
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
36 <inputs>
4
d0c0f3c95368 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 19d84fd5a372f1428e3e5670144881a56e8af8b2
ufz
parents: 3
diff changeset
37 <expand macro="host_port"/>
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
38 <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
39 <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
40 </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
41 <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
42 <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
43 </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
44 <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
45 <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
46 <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
47 <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
48 <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
49 <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
50 <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
51 <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
52 <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
53 <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
54 <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
55 </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
56 </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
57 <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
58 <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
59 <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
60 <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
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 </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
63 </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
64 <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
65 - 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
66
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 - 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
68
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 - If the dataset does not exist, a new one will be created
5
18b86dcdd421 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit d69e684236ce5d36a09e84f1eae6d8c98ed7499b
ufz
parents: 4
diff changeset
70
18b86dcdd421 planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit d69e684236ce5d36a09e84f1eae6d8c98ed7499b
ufz
parents: 4
diff changeset
71 @SECURITY_DISCLAIMER@
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
72 </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
73 <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
74 <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
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 </tool>