Mercurial > repos > imgteam > superdsm
view superdsm.xml @ 2:244f67290d28 draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/superdsm/ commit 2286a6c9da88596349ed9d967c51541409c0a7bf
author | imgteam |
---|---|
date | Mon, 13 Nov 2023 22:12:35 +0000 |
parents | 700ae37e5c69 |
children | 7fd8dba15bd3 |
line wrap: on
line source
<tool id="ip_superdsm" name="Perform segmentation using deformable shape models" version="0.1.3+galaxy2" profile="20.05"> <description>with SuperDSM</description> <edam_operations> <edam_operation>operation_3443</edam_operation> </edam_operations> <xrefs> <xref type="bio.tools">superdsm</xref> <xref type="biii">superdsm</xref> </xrefs> <requirements> <requirement type="package" version="0.1.3">superdsm</requirement> <requirement type="package" version="1.6.0">ray-core</requirement> <requirement type="package" version="0.18.1">scikit-image</requirement> <requirement type="package" version="2020.0">mkl</requirement><!-- this seems to be the last version of MKL which supports the "MKL_DEBUG_CPU_TYPE" environment variable --> <requirement type="package" version="*=mkl">blas</requirement><!-- using MKL instead of other BLAS can significantly improve performance on some hardware, cf. https://stackoverflow.com/questions/62783262/why-is-numpy-with-ryzen-threadripper-so-much-slower-than-xeon --> </requirements> <command detect_errors="aggressive"> <![CDATA[ python '$__tool_directory__/run-superdsm.py' '${dataset}' 'cfg.json' 'masks.png' 'overlay.png' $seg_border \${GALAXY_SLOTS:-4} #if str($config.AF_scale) != '': --AF_scale '${config.AF_scale}' #end if #if str($config.c2f_region_analysis_min_atom_radius) != '': --c2f_region_analysis_min_atom_radius '${config.c2f_region_analysis_min_atom_radius}' #end if #if str($config.c2f_region_analysis_min_norm_energy_improvement) != '': --c2f_region_analysis_min_norm_energy_improvement '${config.c2f_region_analysis_min_norm_energy_improvement}' #end if #if str($config.c2f_region_analysis_max_atom_norm_energy) != '': --c2f_region_analysis_max_atom_norm_energy '${config.c2f_region_analysis_max_atom_norm_energy}' #end if #if str($config.c2f_region_analysis_max_cluster_marker_irregularity) != '': --c2f_region_analysis_max_cluster_marker_irregularity '${config.c2f_region_analysis_max_cluster_marker_irregularity}' #end if #if str($config.dsm_alpha) != '': --dsm_alpha '${config.dsm_alpha}' #end if #if str($config.dsm_AF_alpha) != '': --dsm_AF_alpha '${config.dsm_AF_alpha}' #end if #if str($config.global_energy_minimization_beta) != '': --global_energy_minimization_beta '${config.global_energy_minimization_beta}' #end if #if str($config.global_energy_minimization_AF_beta) != '': --global_energy_minimization_AF_beta '${config.global_energy_minimization_AF_beta}' #end if #if str($config.postprocess_mask_max_distance) != '': --postprocess_mask_max_distance '${config.postprocess_mask_max_distance}' #end if #if str($config.postprocess_mask_stdamp) != '': --postprocess_mask_stdamp '${config.postprocess_mask_stdamp}' #end if #if str($config.postprocess_max_norm_energy) != '': --postprocess_max_norm_energy '${config.postprocess_max_norm_energy}' #end if #if str($config.postprocess_min_contrast) != '': --postprocess_min_contrast '${config.postprocess_min_contrast}' #end if #if str($config.postprocess_min_object_radius) != '': --postprocess_min_object_radius '${config.postprocess_min_object_radius}' #end if ]]> </command> <environment_variables> <environment_variable name="MKL_DEBUG_CPU_TYPE">5</environment_variable><!-- this enables accelerated CPU instruction sets on AMD hardware, does nothing in Intel hardware, thus no need to change this --> </environment_variables> <inputs> <param name="dataset" type="data" format="tiff,png" label="Dataset" /> <param name="seg_border" type="integer" min="1" value="8" label="Width of the outlines (in pixels) of the segmentation results (overlays)" /> <section name="config" title="Hyperparameters" expanded="false"> <param argument="--AF_scale" optional="true" type="float" value="" min="0" label="scale Ο" help="The scale of the objects to be segmented. Leave empty to use the automatically determined value." /> <param argument="--c2f_region_analysis_min_atom_radius" optional="true" type="float" value="" min="0" label="min_atom_radius" help="No region determined by the Coarse-to-fine region analysis scheme is smaller than a circle of this radius (in terms of the surface area). Leave empty to use the automatically determined value." /> <param argument="--c2f_region_analysis_min_norm_energy_improvement" type="float" value="0.1" min="0" label="min_norm_energy_improvement" help="Each split performed during the computation of the atomic image regions must improve the normalized energy π(π) of an image region π by at least this factor. Given that an image region is split into the sub-regions πβ, πβ, the improvement of the split is defined by the fraction max{π(π)β, π(πβ)} / π(πβ βͺ πβ). Lower values of the fraction correspond to better improvements." /> <param argument="--c2f_region_analysis_max_atom_norm_energy" type="float" value="0.05" min="0" label="max_norm_energy1" help="No atomic image region π determined by the Coarse-to-fine region analysis has a normalized energy π(π) smaller than this value." /> <param argument="--c2f_region_analysis_max_cluster_marker_irregularity" type="float" value="0.2" min="0" label="max_pa_ratio" help="Threshold for the βirregularityβ of image regions. Image regions with an βirregularityβ higher than this value are masked as βemptyβ image regions and discarded from further considerations." /> <param argument="--dsm_alpha" type="float" value="" optional="true" min="0" label="regularization of the deformations πΌ" help="Governs the regularization of the deformations. Increasing this value leads to a smoother segmentation result. Leave empty to use the automatically determined value." /> <param argument="--dsm_AF_alpha" type="float" value="0.0005" min="0" label="factor used for automatic computation of πΌ" /> <param argument="--global_energy_minimization_beta" type="float" value="" optional="true" min="0" label="sparsity π½" help="Increasing this value leads to a sparser segmentation result. Leave empty to use the automatically determined value." /> <param argument="--global_energy_minimization_AF_beta" type="float" value="0.66" min="0" label="factor used for automatic computation of π½" /> <param argument="--postprocess_mask_max_distance" type="integer" value="1" min="0" label="mask_max_distance" help="Image points within this maximum distance of the boundary of the original segmentation mask are subject to refinement in post-processing. Image points further away from the boundary are neither added to nor removed from the segmentation mask." /> <param argument="--postprocess_mask_stdamp" type="float" value="2" min="0" label="mask_stdamp" help="An image point adjacent to the boundary of the original segmentation mask is added to the segmentation mask in post-processing, if its Gaussian-smoothed intensity is sufficiently similar to the mean intensity of the mask. The image point is removed otherwise. The lower the value set, the stricter the similarity must be." /> <param argument="--postprocess_max_norm_energy" type="float" value="0.2" label="max_norm_energy2" help="Objects with a normalized energy larger than this value are discarded in post-processing." /> <param argument="--postprocess_min_contrast" type="float" value="1.35" label="min_contrast" help="A segmented object is discarded in post-processing, if the contrast as defined above is below this threshold." /> <param argument="--postprocess_min_object_radius" type="float" value="0" label="min_object_radius" help="Objects smaller than a circle of this radius are discarded in post-processing (in terms of the surface area)." /> </section> </inputs> <outputs> <data format="json" name="cfg" from_work_dir="cfg.json" label="${tool.name} on ${on_string}: cfg" /> <data format="png" name="masks" from_work_dir="masks.png" label="${tool.name} on ${on_string}: masks" /> <data format="png" name="overlay" from_work_dir="overlay.png" label="${tool.name} on ${on_string}: overlay" /> </outputs> <tests> <test> <param name="dataset" value="BBBC033_C2_z28.png" /> <output name="overlay" value="overlay.png" ftype="png" compare="sim_size" /> </test> </tests> <help> This tool permits the segmentation of cell nuclei in 2-D fluorescence microscopy images. You can either use an individual input image (PNG, TIF) or a collection of such images. </help> <citations> <citation type="doi">10.1109/TPAMI.2022.3185583</citation> </citations> </tool>