diff omero_import.xml @ 3:83ccd2b525e5 draft

planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/omero commit 266752b0162fbdb32f132a6702cb661ae36f48f0
author ufz
date Thu, 12 Sep 2024 16:30:43 +0000
parents 267227e757cb
children d0c0f3c95368
line wrap: on
line diff
--- a/omero_import.xml	Thu Sep 05 11:55:50 2024 +0000
+++ b/omero_import.xml	Thu Sep 12 16:30:43 2024 +0000
@@ -2,7 +2,7 @@
     <description> with omero-py </description>
     <macros>
         <token name="@TOOL_VERSION@">5.18.0</token>
-        <token name="@VERSION_SUFFIX@">1</token>
+        <token name="@VERSION_SUFFIX@">2</token>
     </macros>
     <xrefs>
         <xref type="bio.tools">omero</xref>
@@ -22,15 +22,22 @@
             ln -s '${image}' folder/'${image_identifier}.$image.ext' &&
         #end for
 
+        source '$credentials' &&
         omero import folder -T Dataset:name:$dataset_name
             -s $omero_host
             -p $omero_port
-            -u $__user__.extra_preferences.get('omero_account|username', $test_username)
-            -w $__user__.extra_preferences.get('omero_account|password', $test_password)
+            -u "\$OMERO_USER"
+            -w "\$OMERO_PASSWORD"
         > $log &&
 
         omero logout
     ]]></command>
+    <configfiles>
+        <configfile name="credentials"><![CDATA[
+export OMERO_USER="$__user__.extra_preferences.get('omero_account|username', $test_username)"
+export OMERO_PASSWORD="$__user__.extra_preferences.get('omero_account|password', $test_password)"
+        ]]></configfile>
+    </configfiles>
     <inputs>
         <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"/>
         <param name="dataset_name" type="text" optional="false" label="Target Dataset Name"/>