Mercurial > repos > imgteam > plantseg
comparison plantseg.xml @ 0:e59c0e930b1f draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/plantseg/ commit 842fb4a9435114d06329e2cdfaeb8ed8d8479681
author | imgteam |
---|---|
date | Wed, 26 Jun 2024 08:03:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e59c0e930b1f |
---|---|
1 <tool id="plantseg" name="Perform segmentation in densely packed 3-D volumetric images" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05"> | |
2 <description>with PlantSeg</description> | |
3 <macros> | |
4 <import>creators.xml</import> | |
5 <import>tests.xml</import> | |
6 <token name="@TOOL_VERSION@">1.8.1</token> | |
7 <token name="@VERSION_SUFFIX@">0</token> | |
8 </macros> | |
9 <creator> | |
10 <expand macro="creators/bmcv"/> | |
11 </creator> | |
12 <edam_operations> | |
13 <edam_operation>operation_3443</edam_operation> | |
14 </edam_operations> | |
15 <xrefs> | |
16 <xref type="bio.tools">plantseg</xref> | |
17 </xrefs> | |
18 <requirements> | |
19 <requirement type="package" version="@TOOL_VERSION@">plant-seg</requirement> | |
20 <requirement type="package" version="2.3.1">pytorch</requirement> | |
21 <requirement type="package" version="0.5.3">bioimageio.spec</requirement> | |
22 <requirement type="package" version="6.0.1">pyyaml</requirement> | |
23 </requirements> | |
24 <command detect_errors="aggressive"> | |
25 <![CDATA[ | |
26 | |
27 ln -s '${img_in}' ./image.${img_in.ext} && | |
28 python '$__tool_directory__/create-config.py' | |
29 --config config.yml | |
30 --inputs '$inputs' | |
31 --img_in ./image.${img_in.ext} | |
32 --workers \${GALAXY_SLOTS:-4} && | |
33 plantseg --config config.yml && | |
34 ln -s PreProcessing/*/MultiCut/*.h5 'masks.h5' | |
35 | |
36 ]]> | |
37 </command> | |
38 <configfiles> | |
39 <inputs name="inputs" /> | |
40 </configfiles> | |
41 <inputs> | |
42 | |
43 <param name="img_in" type="data" format="tiff,h5" label="3-D volumetric input image" help="The 2-D slices must be stacked along the first axis." /> | |
44 | |
45 <section name="preprocessing" title="Pre-processing" expanded="false"> | |
46 <param name="state" type="boolean" checked="true" label="Enabled" truevalue="true" falsevalue="false" /> | |
47 <param name="factor" type="text" label="Rescaling factor" value="1.0, 1.0, 1.0" help="Comma-separated list of factors (one per axis). Rescaling the volume is essential for the generalization of the networks. The rescaling factor can be computed as the resolution of the volume at hand divided by the resolution of the dataset used in training. Be careful, if the difference is too large check for a different model." /> | |
48 <param name="order" type="integer" min="0" max="3" value="2" label="Order of spline interpolation for rescaling" /> | |
49 </section> | |
50 | |
51 <section name="cnn_prediction" title="CNN prediction" expanded="false"> | |
52 <param name="state" type="boolean" checked="true" label="Enabled" truevalue="true" falsevalue="false" /> | |
53 <param name="model_name" type="text" label="Model name" value="generic_confocal_3D_unet" /> | |
54 <param name="patch" type="text" label="Patch size" value="100, 160, 160" help="Comma-separated list of pixel counts (one per axis)." /> | |
55 <param name="stride_ratio" type="float" min="0.5" max="0.75" value="0.75" label="Stride ratio" help="Stride between patches will be computed as the product of this and the patch size above." /> | |
56 </section> | |
57 | |
58 <section name="cnn_postprocessing" title="CNN postprocessing" expanded="false"> | |
59 <param name="state" type="boolean" checked="false" label="Enabled" truevalue="true" falsevalue="false" /> | |
60 <param name="factor" type="text" label="Rescaling factor" value="1.0, 1.0, 1.0" help="Comma-separated list of factors (one per axis)." /> | |
61 <param name="order" type="integer" min="0" max="3" value="2" label="Order of spline interpolation for rescaling" /> | |
62 </section> | |
63 | |
64 <section name="segmentation" title="Segmentation" expanded="false"> | |
65 <param name="state" type="boolean" checked="true" label="Enabled" truevalue="true" falsevalue="false" /> | |
66 <param name="beta" type="float" min="0" max="1" value="0.5" label="Beta" help="Balance under-/over-segmentation; 0 - aim for undersegmentation, 1 - aim for oversegmentation." /> | |
67 <param name="run_ws" type="boolean" checked="true" label="Run watershed" truevalue="true" falsevalue="false" /> | |
68 <param name="ws_2D" type="boolean" checked="true" label="Use 2-D instead of 3-D watershed" truevalue="true" falsevalue="false" /> | |
69 <param name="ws_threshold" type="float" min="0" max="1" value="0.5" label="Probability maps threshold" /> | |
70 <param name="ws_minsize" type="integer" min="0" value="50" label="Minimum superpixel size" /> | |
71 <param name="ws_sigma" type="float" min="0" value="2.0" label="Gaussian smoothing of the distance transform" /> | |
72 <param name="ws_w_sigma" type="float" min="0" value="0" label="Gaussian smoothing of boundaries" /> | |
73 <param name="post_minsize" type="integer" min="0" value="50" label="Minimum segment size in the final segmentation" /> | |
74 </section> | |
75 | |
76 <section name="segmentation_postprocessing" title="Segmentation postprocessing" expanded="false"> | |
77 <param name="state" type="boolean" checked="false" label="Enabled" truevalue="true" falsevalue="false" /> | |
78 <param name="factor" type="text" label="Rescaling factor" value="1.0, 1.0, 1.0" help="Comma-separated list of factors (one per axis)." /> | |
79 <param name="order" type="integer" min="0" max="3" value="0" label="Order of spline interpolation for rescaling" /> | |
80 </section> | |
81 | |
82 </inputs> | |
83 <outputs> | |
84 <data format="h5" name="masks" from_work_dir="masks.h5" /> | |
85 </outputs> | |
86 <tests> | |
87 <test><!-- Test H5 input --> | |
88 <param name="img_in" value="sample_ovule.h5" /> | |
89 <output name="masks" value="sample_ovule_output.h5" ftype="h5" compare="sim_size" delta="100" delta_frac="0.1" /> | |
90 </test> | |
91 <test><!-- Test TIFF input --> | |
92 <param name="img_in" value="sample_ovule.tiff" /> | |
93 <output name="masks" value="sample_ovule_output.h5" ftype="h5" compare="sim_size" delta="100" delta_frac="0.1" /> | |
94 </test> | |
95 </tests> | |
96 <help> | |
97 | |
98 **Perform segmentation in densely packed 3-D volumetric images.** | |
99 | |
100 PlantSeg is a tool for cell instance aware segmentation in densely packed 3D volumetric images. | |
101 The pipeline uses a two stages segmentation strategy (Neural Network + Segmentation). | |
102 The pipeline is tuned for plant cell tissue acquired with confocal and light sheet microscopy. | |
103 | |
104 </help> | |
105 <citations> | |
106 <citation type="doi">10.7554/eLife.57613</citation> | |
107 </citations> | |
108 </tool> |