Mercurial > repos > lldelisle > omero_hyperstack_to_gastruloid_measurements
comparison omero_hyperstack_to_gastruloid_measurements.xml @ 0:5396ab665901 draft
planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/omero_hyperstack_to_gastruloid_measurements commit 4eb6599440c6b220775dc79509983e7549e36e0b
author | lldelisle |
---|---|
date | Fri, 24 Mar 2023 13:03:39 +0000 |
parents | |
children | bd5771ff6aa3 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:5396ab665901 |
---|---|
1 <tool id="omero_hyperstack_to_gastruloid_measurements" name="Omero hyperstack to Gastruloid measurements" profile="20.01" version="@TOOL_VERSION@+galaxy0"> | |
2 <macros> | |
3 <token name="@TOOL_VERSION@">20230324</token> | |
4 </macros> | |
5 <requirements> | |
6 <requirement type="package" version="20220414">fiji</requirement> | |
7 <requirement type="package" version="3.7">python</requirement> | |
8 <requirement type="package" version="2.0.0">fiji-max_inscribed_circles</requirement> | |
9 <requirement type="package" version="1.8.2">fiji-ilastik</requirement> | |
10 <requirement type="package" version="5.8.0">fiji-omero_ij</requirement> | |
11 <requirement type="package" version="5.12.2">fiji-simple_omero_client</requirement> | |
12 </requirements> | |
13 <command detect_errors="exit_code"><![CDATA[ | |
14 ## the user wants to use a non-public OMERO instance | |
15 ## check if credentials are set in the user-preferences, if not warn the user and exit | |
16 #set $username = $__user__.extra_preferences.get('omero_account|username', "") | |
17 #set $password = $__user__.extra_preferences.get('omero_account|password', "") | |
18 | |
19 #if ($username == "" or $password ==""): | |
20 echo "OMERO connection credentials are empty. Set your credentials via: User -> Preferences -> Manage Information" 1>&2 && | |
21 exit 1 && | |
22 #end if | |
23 mkdir output && | |
24 ## Because ilastik wants to write to ${HOME}/.cache and ${HOME}/.config | |
25 export HOME=`pwd` && | |
26 ImageJ-ilastik --ij2 --headless --console --run '$__tool_directory__/'1-omero_timelapse_image_to_measurements_phase.groovy | |
27 'USERNAME="",PASSWORD="",credentials="${credentials}",host="${omero_host}",port="${omero_port}",object_type="${omero_object.object_type}",id="${omero_object.omero_id}",ilastik_project="${ilastik_project}",ilastik_project_short_name="${ilastik_project.name}",ilastik_project_type="${ilastik_project_type}",ilastik_label_OI="${ilastik_label_OI}",probability_threshold="${probability_threshold}",radius_median="${radius_median}",min_size_particle="${min_size_particle}",get_spine="true",minimum_diameter="${minimum_diameter}",closeness_tolerance="${closeness_tolerance}",min_similarity="${min_similarity}",output_directory="output",debug="${debug}"' > output.log | |
28 ]]> | |
29 </command> | |
30 <configfiles> | |
31 <configfile name="credentials"><![CDATA[#set $username = $__user__.extra_preferences.get('omero_account|username', "") | |
32 #set $password = $__user__.extra_preferences.get('omero_account|password', "") | |
33 $username | |
34 $password | |
35 ]]></configfile> | |
36 </configfiles> | |
37 <inputs> | |
38 <param name="omero_host" type="text" label="OMERO host URL"> | |
39 <validator type="regex" message="Enter a valid host location, for example, your.omero.server">^[a-zA-Z0-9._-]*$</validator> | |
40 <validator type="expression" message="No two dots (..) allowed">'..' not in value</validator> | |
41 </param> | |
42 <param name="omero_port" type="integer" value="4064" label="Omero port" /> | |
43 <conditional name="omero_object"> | |
44 <param name="object_type" type="select" label="Type of object to analyze"> | |
45 <option value="image">Single Omero Image</option> | |
46 <option value="well">All images of a Well</option> | |
47 <option value="plate">All images of a Plate</option> | |
48 <option value="dataset">All images of a Dataset</option> | |
49 </param> | |
50 <when value="image"> | |
51 <param name="omero_id" type="integer" value="" label="Image ID on omero" /> | |
52 </when> | |
53 <when value="well"> | |
54 <param name="omero_id" type="integer" value="" label="Well ID on omero" /> | |
55 </when> | |
56 <when value="plate"> | |
57 <param name="omero_id" type="integer" value="" label="Plate ID on omero" /> | |
58 </when> | |
59 <when value="dataset"> | |
60 <param name="omero_id" type="integer" value="" label="Dataset ID on omero" /> | |
61 </when> | |
62 </conditional> | |
63 <param name="ilastik_project" type="data" format="h5" label="Ilastik project" /> | |
64 <param name="ilastik_project_type" type="select" label="Type of Ilastik project"> | |
65 <option value="Regular">Regular</option> | |
66 <option value="Auto-context">Auto-context</option> | |
67 </param> | |
68 <param name="ilastik_label_OI" type="integer" value="3" label="Index of label of interest in Ilastik project" /> | |
69 <param name="probability_threshold" type="float" min="0" max="1" value="0.4" label="Probability threshold for ilastik" /> | |
70 <param name="radius_median" type="float" value="20" label="Radius for median (=smooth the mask)" /> | |
71 <param name="min_size_particle" type="integer" min="0" value="5000" label="Minimum surface for Analyze Particle" /> | |
72 <param name="minimum_diameter" type="integer" min="0" value="20" label="Minimum diameter of inscribed circles" /> | |
73 <param name="closeness_tolerance" type="integer" min="0" value="50" label="Closeness Tolerance for the spine" help="Maximum distance between circles along the spine"/> | |
74 <param name="min_similarity" type="float" min="-1" max="1" value="0.1" label="Min similarity for the spine" help="Close to 0 values allow more U shapes while close to 1 values only allows I shapes" /> | |
75 <param name="debug" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Debug the elongation index" help="This will output all inscribed circles" /> | |
76 <param name="keep_intermediate" type="boolean" checked="false" label="Keep intermediate results (ilastik prediction + tables)" /> | |
77 </inputs> | |
78 | |
79 <outputs> | |
80 <data name="logfile" format="txt" from_work_dir="output.log" label="${tool.name} on ID ${omero_object.omero_id} with ${ilastik_project.name}: logfile"> | |
81 </data> | |
82 <collection name="tables" type="list" label="${tool.name} on ID ${omero_object.omero_id} with ${ilastik_project.name}: Tables"> | |
83 <discover_datasets pattern="(?P<designation>.+)\.csv" directory="output" format="csv"/> | |
84 <filter>keep_intermediate</filter> | |
85 </collection> | |
86 <collection name="hyperstacks_with_overlay" type="list" label="${tool.name} on ID ${omero_object.omero_id} with ${ilastik_project.name}: Hyperstacks"> | |
87 <discover_datasets pattern="(?P<designation>.+)\.tiff" directory="output" format="tiff"/> | |
88 </collection> | |
89 <collection name="ilastik_results" type="list" label="${tool.name} on ID ${omero_object.omero_id} with ${ilastik_project.name}: Ilastik"> | |
90 <discover_datasets pattern="(?P<designation>.+)\.tif$" directory="output" format="tiff"/> | |
91 <filter>keep_intermediate</filter> | |
92 </collection> | |
93 </outputs> | |
94 <help> | |
95 <![CDATA[ | |
96 **Overview** | |
97 | |
98 This tool will get images from omero, use an ilastik project to get propability and generate a mask. | |
99 The potential gastruloids will be indentified by analyze Particles. | |
100 On each ROI, the elongation index will be computed. | |
101 | |
102 **License** | |
103 | |
104 License text:: | |
105 | |
106 // This macro was written by the BIOP (https://github.com/BIOP) | |
107 // Romain Guiet and Rémy Dornier | |
108 // Lucille Delisle modified to support headless | |
109 // merge the analysis script with templates available at | |
110 // https://github.com/BIOP/OMERO-scripts/tree/main/Fiji | |
111 | |
112 /* | |
113 * = COPYRIGHT = | |
114 * © All rights reserved. ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE, Switzerland, BioImaging And Optics Platform (BIOP), 2022 | |
115 * | |
116 * Licensed under the BSD-3-Clause License: | |
117 * Redistribution and use in source and binary forms, with or without modification, are permitted provided | |
118 * that the following conditions are met: | |
119 * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
120 * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer | |
121 * in the documentation and/or other materials provided with the distribution. | |
122 * 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products | |
123 * derived from this software without specific prior written permission. | |
124 * | |
125 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | |
126 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | |
127 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
128 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
129 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
130 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
131 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
132 */ | |
133 | |
134 ]]> | |
135 </help> | |
136 </tool> |