comparison render.xml @ 3:e07bfdcb1d26 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/libcarna/ commit 9abf60fee6ba4f5d4f4a18d8f4d33e6263b3c065
author imgteam
date Tue, 06 Jan 2026 11:26:30 +0000
parents 7188234ae8f6
children 8fa86f0ebca2
comparison
equal deleted inserted replaced
2:7188234ae8f6 3:e07bfdcb1d26
17 </section> 17 </section>
18 </xml> 18 </xml>
19 <xml name="params/builtin_cmap"> 19 <xml name="params/builtin_cmap">
20 <conditional name="ramp"> 20 <conditional name="ramp">
21 <param name="enabled" type="select" label="Ramp function" 21 <param name="enabled" type="select" label="Ramp function"
22 help="Use a piecewise linear ramp function for the alpha channel of the colormap."> 22 help="Use a piecewise linear ramp function for the alpha channel of the color map.">
23 <option value="false" selected="true">Disabled</option> 23 <option value="false" selected="true">Disabled</option>
24 <option value="true">Enabled</option> 24 <option value="true">Enabled</option>
25 </param> 25 </param>
26 <when value="true"> 26 <when value="true">
27 <expand macro="params/intensity" name="start" value="0" label="Ramp start"/> 27 <expand macro="params/intensity" name="start" value="0" label="Ramp start"/>
75 See https://github.com/kostrykin/LibCarna-Python-Docker for details of the image. 75 See https://github.com/kostrykin/LibCarna-Python-Docker for details of the image.
76 --> 76 -->
77 <container type="docker">docker.io/kostrykin/libcarna-python:@TOOL_VERSION@-0</container> 77 <container type="docker">docker.io/kostrykin/libcarna-python:@TOOL_VERSION@-0</container>
78 </requirements> 78 </requirements>
79 <required_files> 79 <required_files>
80 <include type="literal" path="clip_image.py"/> 80 <include type="literal" path="render.py"/>
81 <exclude type="literal" path="README.md"/> 81 <exclude type="literal" path="README.md"/>
82 </required_files> 82 </required_files>
83 <command detect_errors="aggressive"><![CDATA[ 83 <command detect_errors="aggressive"><![CDATA[
84 84
85 python '$__tool_directory__/render.py' 85 python '$__tool_directory__/render.py'
127 "diffuse": $mode.diffuse 127 "diffuse": $mode.diffuse
128 #end if 128 #end if
129 }, 129 },
130 130
131 "colormap": "$colormap.name", 131 "colormap": "$colormap.name",
132 "colorbar": $colorbar,
132 133
133 #if str($colormap.name) != "custom" 134 #if str($colormap.name) != "custom"
134 "ramp": { 135 "ramp": {
135 #if str($colormap.ramp.enabled) == "true" 136 #if str($colormap.ramp.enabled) == "true"
136 "start_type": "$colormap.ramp.start.type", 137 "start_type": "$colormap.ramp.start.type",
195 <param name="name" type="select" label="Color map"> 196 <param name="name" type="select" label="Color map">
196 <option value="custom">Custom</option> 197 <option value="custom">Custom</option>
197 <expand macro="option/builtin_cmap_list"/> 198 <expand macro="option/builtin_cmap_list"/>
198 </param> 199 </param>
199 <when value="custom"> 200 <when value="custom">
200 <param name="custom" type="data" format="tabular" label="Custom colormap"> 201 <param name="custom" type="data" format="tabular" label="Custom color map">
201 <validator type="dataset_metadata_in_range" metadata_name="columns" min="3" message="Colormap needs to have at least 3 columns."/> 202 <validator type="dataset_metadata_in_range" metadata_name="columns" min="3" message="Color map needs to have at least 3 columns."/>
202 </param> 203 </param>
203 </when> 204 </when>
204 <expand macro="when/builtin_cmap_list"/> 205 <expand macro="when/builtin_cmap_list"/>
205 </conditional> 206 </conditional>
207 <param name="colorbar" type="boolean" checked="true" label="Add a color bar"/>
206 <section name="camera" title="Camera parameters" expanded="true"> 208 <section name="camera" title="Camera parameters" expanded="true">
207 <param name="fov" type="float" min="10" max="170" value="90" label="Field of view (in degrees)"/> 209 <param name="fov" type="float" min="10" max="170" value="90" label="Field of view (in degrees)"/>
208 <param name="distance" type="float" min="1" value="200" label="Distance" 210 <param name="distance" type="float" min="1" value="200" label="Distance"
209 help="Distance between the camera and the center of the 3-D image."/> 211 help="Distance between the camera and the center of the 3-D image."/>
210 <param name="z_near" type="float" min="0.01" value="10" label="Near clipping plane" 212 <param name="z_near" type="float" min="0.01" value="10" label="Near clipping plane"
314 316
315 .. image:: dvr.gif 317 .. image:: dvr.gif
316 :width: 438px 318 :width: 438px
317 :scale: 100% 319 :scale: 100%
318 320
319 An overview of the available colormaps is available at `matplotlib.org`_. 321 An overview of the available color maps is available at `matplotlib.org`_.
320 322
321 .. _matplotlib.org: https://matplotlib.org/stable/users/explain/colors/colormaps.html 323 .. _matplotlib.org: https://matplotlib.org/stable/users/explain/colors/colormaps.html
322 324
323 When using custom colormaps, a tabular file with at least 3 columns must be used (`intensity`, `type`, `color`). Each pair of consecutive rows defines a linear segment of the colormap. The `intensity` values can be given either as absolute intensity values, or as relative values where 0 and 1 correspond to the minimum and maximum intensities of the image data, respectively. The `type` column indicates whether the corresponding `intensity` value is `absolute` or `relative`. The `color` must be given in hexadecimal notation with a ``#`` prefix and must be either 6 or 8 digits long (6 for RGB and 8 for RGBA). An example is given below. 325 When using custom color maps, a tabular file with at least 3 columns must be used (`intensity`, `type`, `color`). Each pair of consecutive rows defines a linear segment of the color map. The `intensity` values can be given either as absolute intensity values, or as relative values where 0 and 1 correspond to the minimum and maximum intensities of the image data, respectively. The `type` column indicates whether the corresponding `intensity` value is `absolute` or `relative`. The `color` must be given in hexadecimal notation with a ``#`` prefix and must be either 6 or 8 digits long (6 for RGB and 8 for RGBA). An example is given below.
324 326
325 +-----------+------------+----------+ 327 +-----------+------------+----------+
326 | color | intensity | type | 328 | color | intensity | type |
327 +-----------+------------+----------+ 329 +-----------+------------+----------+
328 | #ff00007f | 0 | absolute | 330 | #ff00007f | 0 | absolute |