Mercurial > repos > ufz > omero_import
comparison omero_import.xml @ 4:d0c0f3c95368 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:53:53 +0000 |
parents | 83ccd2b525e5 |
children | 18b86dcdd421 |
comparison
equal
deleted
inserted
replaced
3:83ccd2b525e5 | 4:d0c0f3c95368 |
---|---|
1 <tool id="omero_import" name="OMERO Image Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.01" license="MIT"> | 1 <tool id="omero_import" name="OMERO Image Import" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT"> |
2 <description> with omero-py </description> | 2 <description> with omero-py </description> |
3 <macros> | 3 <macros> |
4 <token name="@TOOL_VERSION@">5.18.0</token> | 4 <import>macros.xml</import> |
5 <token name="@VERSION_SUFFIX@">2</token> | 5 <token name="@VERSION_SUFFIX@">3</token> |
6 </macros> | 6 </macros> |
7 <xrefs> | 7 <xrefs> |
8 <xref type="bio.tools">omero</xref> | 8 <xref type="bio.tools">omero</xref> |
9 </xrefs> | 9 </xrefs> |
10 <requirements> | 10 <expand macro="omeropy_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[ | 11 <command detect_errors="exit_code"><![CDATA[ |
16 #import re | 12 #import re |
17 | 13 |
18 mkdir folder && | 14 mkdir folder && |
19 #for $image in $folder: | 15 #for $image in $folder: |
22 ln -s '${image}' folder/'${image_identifier}.$image.ext' && | 18 ln -s '${image}' folder/'${image_identifier}.$image.ext' && |
23 #end for | 19 #end for |
24 | 20 |
25 source '$credentials' && | 21 source '$credentials' && |
26 omero import folder -T Dataset:name:$dataset_name | 22 omero import folder -T Dataset:name:$dataset_name |
27 -s $omero_host | 23 -s '$omero_host' |
28 -p $omero_port | 24 -p $omero_port |
29 -u "\$OMERO_USER" | 25 -u "\$OMERO_USER" |
30 -w "\$OMERO_PASSWORD" | |
31 > $log && | 26 > $log && |
32 | 27 |
33 omero logout | 28 omero logout |
34 ]]></command> | 29 ]]></command> |
35 <configfiles> | 30 <configfiles> |
37 export OMERO_USER="$__user__.extra_preferences.get('omero_account|username', $test_username)" | 32 export OMERO_USER="$__user__.extra_preferences.get('omero_account|username', $test_username)" |
38 export OMERO_PASSWORD="$__user__.extra_preferences.get('omero_account|password', $test_password)" | 33 export OMERO_PASSWORD="$__user__.extra_preferences.get('omero_account|password', $test_password)" |
39 ]]></configfile> | 34 ]]></configfile> |
40 </configfiles> | 35 </configfiles> |
41 <inputs> | 36 <inputs> |
37 <expand macro="host_port"/> | |
42 <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"/> | 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"/> |
43 <param name="dataset_name" type="text" optional="false" label="Target Dataset Name"/> | 39 <param name="dataset_name" type="text" optional="false" label="Target Dataset Name"/> |
44 <param name="omero_host" type="text" label="OMERO host URL"> | |
45 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator> | |
46 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator> | |
47 </param> | |
48 <param name="omero_port" type="integer" value="4064" optional="false" label="OMERO port"/> | |
49 <param name="test_username" type="hidden" value=""/> | |
50 <param name="test_password" type="hidden" value=""/> | |
51 </inputs> | 40 </inputs> |
52 <outputs> | 41 <outputs> |
53 <data name="log" format="txt"/> | 42 <data name="log" format="txt"/> |
54 </outputs> | 43 </outputs> |
55 <tests> | 44 <tests> |