Mercurial > repos > lldelisle > upload_roi_and_measures_to_omero
comparison uploadROIandMeasuresToOMERO.xml @ 0:d507ce86f0d0 draft default tip
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/upload_roi_and_measures_to_omero commit 68de74426a3f93a240d64cb416f608ba7caca6eb
author | lldelisle |
---|---|
date | Fri, 16 Dec 2022 21:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d507ce86f0d0 |
---|---|
1 <tool id="uploadROIandMeasuresToOMERO" name="uploadROIandMeasuresToOMERO" version="0.0.5"> | |
2 <description>Designed to work after measureGastruloids</description> | |
3 <requirements> | |
4 <requirement type="package" version="5.10.1">omero-py</requirement> | |
5 <requirement type="package" version="1.3.4">pandas</requirement> | |
6 </requirements> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 #import re | |
9 #if $omero_instance_type.omero_instance == "priv": | |
10 ## the user wants to use a non-public OMERO instance | |
11 ## check if credentials are set in the user-preferences, if not warn the user and exit | |
12 #set $username = $__user__.extra_preferences.get('omero_account|username', "") | |
13 #set $password = $__user__.extra_preferences.get('omero_account|password', "") | |
14 | |
15 #if $omero_instance_type.galaxy_test_param != 'true' and ($username == "" or $password ==""): | |
16 echo "OMERO connection credentials are empty. Set your credentials via: User -> Preferences -> Manage Information" 1>&2 && | |
17 exit 1 && | |
18 #end if | |
19 #end if | |
20 | |
21 mkdir rois && | |
22 #for file in $rois | |
23 #set identifier = re.sub('[^\s\w\-]', '_', str($file.element_identifier)) | |
24 ln -s '$file' rois/${identifier}.txt && | |
25 #end for | |
26 python '$__tool_directory__/upload_omero_roi_results.py' | |
27 #if $omero_instance_type.omero_instance =='priv': | |
28 -oh '$omero_instance_type.omero_host' | |
29 $omero_instance_type.omero_secured | |
30 -cf '$credentials' | |
31 #end if | |
32 --rois rois | |
33 --summaryResults $summary_results | |
34 --verbose | |
35 > output.log | |
36 ]]> | |
37 </command> | |
38 <configfiles> | |
39 <configfile name="credentials"><![CDATA[ | |
40 #if $omero_instance_type.omero_instance =='priv' and $omero_instance_type.galaxy_test_param == 'true': | |
41 ## as a test for a private instance we actually use a public instance, but with credentials | |
42 #set $username = 'public' | |
43 #set $password = 'public' | |
44 #else: | |
45 #set $username = $__user__.extra_preferences.get('omero_account|username', "") | |
46 #set $password = $__user__.extra_preferences.get('omero_account|password', "") | |
47 #end if | |
48 { | |
49 "username": "$username", | |
50 "password": "$password" | |
51 } | |
52 ]]></configfile> | |
53 </configfiles> | |
54 <inputs> | |
55 <conditional name="omero_instance_type"> | |
56 <param name="omero_instance" type="select" label="Which OMERO instance to connect?" | |
57 help="By default, the tool will download a tarball containing individual images from IDR into your Galaxy history. If you | |
58 need to connect to your own instance, set your connection username and password from User->Preference->Manage Information" > | |
59 <option value="idr">IDR</option> | |
60 <option value="priv">other OMERO instance</option> | |
61 </param> | |
62 <when value="priv"> | |
63 <param name="omero_host" type="text" label="OMERO host URL"> | |
64 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator> | |
65 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator> | |
66 </param> | |
67 <param name="omero_secured" type="boolean" label="Secured connection?" checked="true" truevalue="--omero-secured" falsevalue="" | |
68 help="Select Yes if your OMERO instance is running with SSL, otherwise select No"> | |
69 </param> | |
70 <param name="galaxy_test_param" type="hidden" value="false" /> | |
71 </when> | |
72 <when value="idr" /> | |
73 </conditional> | |
74 <param name="rois" type="data_collection" format="tabular" label="Select ROIs." collection_type="list"/> | |
75 <param name="summary_results" type="data" format="csv" label="Select the all results csv."/> | |
76 </inputs> | |
77 | |
78 <outputs> | |
79 <data name="logfile" format="txt" from_work_dir="output.log" label="${tool.name} on ${on_string}: logfile"> | |
80 </data> | |
81 </outputs> | |
82 <help> | |
83 <![CDATA[ | |
84 **Overview** | |
85 | |
86 This tool will upload to OMERO the ROIs and the Results as table. | |
87 | |
88 The expected workflow is: idr_download_by_ids > measureGastruloids > uploadROIandMeasuresToOMERO | |
89 ]]> | |
90 </help> | |
91 </tool> | |
92 |