annotate bioimage_inference.xml @ 2:9b8fc55cb9eb draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit c994ad3cbfbc134d39f485514b0c1a9c3d2d235e
author bgruening
date Tue, 15 Oct 2024 12:57:42 +0000
parents b0f2d3b4a278
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
1 <tool id="bioimage_inference" name="Process image using a BioImage.IO model" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
2 <description>with PyTorch</description>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
3 <macros>
2
9b8fc55cb9eb planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit c994ad3cbfbc134d39f485514b0c1a9c3d2d235e
bgruening
parents: 1
diff changeset
4 <token name="@TOOL_VERSION@">2.4.1</token>
0
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
5 <token name="@VERSION_SUFFIX@">0</token>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
6 </macros>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
7 <creator>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
8 <organization name="European Galaxy Team" url="https://galaxyproject.org/eu/" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
9 <person givenName="Anup" familyName="Kumar" email="kumara@informatik.uni-freiburg.de" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
10 <person givenName="Beatriz" familyName="Serrano-Solano" email="beatriz.serrano.solano@eurobioimaging.eu" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
11 <person givenName="Leonid" familyName="Kostrykin" email="leonid.kostrykin@bioquant.uni-heidelberg.de" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
12 </creator>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
13 <edam_operations>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
14 <edam_operation>operation_3443</edam_operation>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
15 </edam_operations>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
16 <xrefs>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
17 <xref type="bio.tools">pytorch</xref>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
18 <xref type="biii">pytorch</xref>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
19 </xrefs>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
20 <requirements>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
21 <requirement type="package" version="3.9.12">python</requirement>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
22 <requirement type="package" version="@TOOL_VERSION@">pytorch</requirement>
2
9b8fc55cb9eb planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit c994ad3cbfbc134d39f485514b0c1a9c3d2d235e
bgruening
parents: 1
diff changeset
23 <requirement type="package" version="0.19.1">torchvision</requirement>
1
b0f2d3b4a278 planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 3564cc70b5eb512031ac122534b5c2ff2e558274
bgruening
parents: 0
diff changeset
24 <requirement type="package" version="2.35.1">imageio</requirement>
0
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
25 </requirements>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
26 <version_command>echo "@VERSION@"</version_command>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
27 <command detect_errors="aggressive">
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
28 <![CDATA[
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
29 python '$__tool_directory__/main.py'
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
30 --imaging_model '$input_imaging_model'
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
31 --image_file '$input_image_file'
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
32 --image_size '$input_image_input_size'
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
33 ]]>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
34 </command>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
35 <inputs>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
36 <param name="input_imaging_model" type="data" format="zip" label="BioImage.IO model" help="Please upload a BioImage.IO model."/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
37 <param name="input_image_file" type="data" format="tiff,png" label="Input image" help="Please provide an input image for the analysis."/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
38 <param name="input_image_input_size" type="text" label="Size of the input image" help="Provide the size of the input image. See the chosen model's RDF file to find the correct input size. For example: for the BioImage.IO model MitochondriaEMSegmentationBoundaryModel, the input size is 256 x 256 x 32 x 1. Enter the size as 256,256,32,1."/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
39 </inputs>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
40 <outputs>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
41 <data format="tif" name="output_predicted_image" from_work_dir="output_predicted_image.tif" label="Predicted image"></data>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
42 <data format="npy" name="output_predicted_image_matrix" from_work_dir="output_predicted_image_matrix.npy" label="Predicted image tensor"></data>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
43 </outputs>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
44 <tests>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
45 <test>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
46 <param name="input_imaging_model" value="input_imaging_model.zip" location="https://zenodo.org/api/records/6647674/files/weights-torchscript.pt/content"/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
47 <param name="input_image_file" value="input_image_file.tif" location="https://zenodo.org/api/records/6647674/files/sample_input_0.tif/content"/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
48 <param name="input_image_input_size" value="256,256,1,1"/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
49 <output name="output_predicted_image" file="output_nucleisegboundarymodel.tif" compare="sim_size" delta="100" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
50 <output name="output_predicted_image_matrix" file="output_nucleisegboundarymodel_matrix.npy" compare="sim_size" delta="100" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
51 </test>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
52 <test>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
53 <param name="input_imaging_model" value="input_imaging_model.zip" location="https://zenodo.org/api/records/6647674/files/weights-torchscript.pt/content"/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
54 <param name="input_image_file" value="input_nucleisegboundarymodel.png"/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
55 <param name="input_image_input_size" value="256,256,1,1"/>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
56 <output name="output_predicted_image" file="output_nucleisegboundarymodel.tif" compare="sim_size" delta="100" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
57 <output name="output_predicted_image_matrix" file="output_nucleisegboundarymodel_matrix.npy" compare="sim_size" delta="100" />
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
58 </test>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
59 </tests>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
60 <help>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
61 <![CDATA[
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
62 **What it does**
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
63
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
64 The tool takes a BioImage.IO model and an image (as TIF or PNG) to be analyzed. The analysis is performed by the model. The model is used to obtain a prediction of the result of the analysis, and the predicted image becomes available as a TIF file in the Galaxy history.
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
65
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
66 **Input files**
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
67 - BioImage.IO model: Add one of the model from Galaxy file uploader by choosing a "remote" file at "ML Models/bioimaging-models"
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
68 - Image to be analyzed: Provide an image as TIF/PNG file
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
69 - Provide the necessary input size for the model. This information can be found in the RDF file of each model (RDF file > config > test_information > inputs > size)
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
70
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
71 **Output files**
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
72 - Predicted image: Predicted image using the BioImage.IO model
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
73 - Predicted image matrix: Predicted image matrix in original dimensions
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
74 ]]>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
75 </help>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
76 <citations>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
77 <citation type="doi">10.1145/3620665.3640366</citation>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
78 <citation type="doi">10.1101/2022.06.07.495102</citation>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
79 </citations>
caea9ee1ffac planemo upload for repository https://github.com/bgruening/galaxytools/tree/recommendation_training/tools/bioimaging commit 57f46739f4365f59cd52c515bdd3fae2e01b734e
bgruening
parents:
diff changeset
80 </tool>