Mercurial > repos > ufz > omero_import
comparison omero_import.xml @ 0:b3d29ef12aed draft
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero/omero_basic_upload commit 5497619aeb0dbc1e4313e6a10752ef220e7950c1
author | ufz |
---|---|
date | Mon, 29 Jul 2024 18:49:25 +0000 |
parents | |
children | f762de618b1f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b3d29ef12aed |
---|---|
1 <tool id="omero_import" name="OMERO Image Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01" license="MIT"> | |
2 <description> with omero-py </description> | |
3 <macros> | |
4 <token name="@TOOL_VERSION@">5.18.0</token> | |
5 <token name="@VERSION_SUFFIX@">0</token> | |
6 </macros> | |
7 <xrefs> | |
8 <xref type="bio.tools">omero</xref> | |
9 </xrefs> | |
10 <requirements> | |
11 <requirement type="package" version="@TOOL_VERSION@">omero-py</requirement> | |
12 <!-- openjdk is needed: https://github.com/conda-forge/omero-py-feedstock/pull/16 --> | |
13 <requirement type="package" version="21.0.2">openjdk</requirement> | |
14 </requirements> | |
15 <command detect_errors="exit_code"><![CDATA[ | |
16 #import re | |
17 | |
18 mkdir folder && | |
19 #for $image in $folder: | |
20 #set image = $image | |
21 #set image_identifier = re.sub('[^\s\w\-]', '_', str($image.element_identifier)) | |
22 ln -s '${image}' folder/'${image_identifier}.$image.ext' && | |
23 #end for | |
24 | |
25 omero import folder -T Dataset:name:$dataset_name | |
26 -s $omero_host | |
27 -p $omero_port | |
28 -u $__user__.extra_preferences.get('omero|username', $test_username) | |
29 -w $__user__.extra_preferences.get('omero|password', $test_password) | |
30 > $log && | |
31 | |
32 omero logout | |
33 ]]></command> | |
34 <inputs> | |
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"/> | |
36 <param name="dataset_name" type="text" optional="false" label="Dataset where to import the images"/> | |
37 <param name="omero_host" type="text" label="OMERO host URL"> | |
38 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator> | |
39 </param> | |
40 <param name="omero_port" type="integer" value="4064" optional="false" label="OMERO port"/> | |
41 <param name="test_username" type="hidden" value=""/> | |
42 <param name="test_password" type="hidden" value=""/> | |
43 </inputs> | |
44 <outputs> | |
45 <data name="log" format="txt"/> | |
46 </outputs> | |
47 <tests> | |
48 <test> | |
49 <param name="folder" value="input1.tif,input2.tif"/> | |
50 <param name="dataset_name" value="galaxy_test_upload"/> | |
51 <param name="omero_host" value="host.docker.internal"/> | |
52 <param name="omero_port" value="6064"/> | |
53 <param name="test_username" value="root"/> | |
54 <param name="test_password" value="omero"/> | |
55 <output name="log" value="omero_output.txt" ftype="txt"> | |
56 <assert_contents> | |
57 <has_n_lines n="2"/> | |
58 </assert_contents> | |
59 </output> | |
60 <assert_stderr> | |
61 <has_text_matching expression="IMPORT_DONE.*input1.tif"/> | |
62 <has_text_matching expression="IMPORT_DONE.*input2.tif"/> | |
63 <has_text text="files uploaded, 2 filesets created, 2 images imported, 0 errors"/> | |
64 </assert_stderr> | |
65 </test> | |
66 </tests> | |
67 <help> | |
68 - This tool allows the import of images into a user-defined OMERO server | |
69 | |
70 - The user can define an existing dataset name where the images will be imported | |
71 | |
72 - If the dataset does not exist, a new one will be created | |
73 </help> | |
74 <citations> | |
75 <citation type="doi">10.1038/nmeth.1896</citation> | |
76 </citations> | |
77 </tool> |