annotate mesmer.xml @ 4:2675ff99a53b draft default tip

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
author goeckslab
date Wed, 28 Feb 2024 20:52:00 +0000
parents c60b810d570d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
2675ff99a53b planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 3
diff changeset
1 <tool id="mesmer" name="Perform segmentation of multiplexed tissue data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="19.01">
2675ff99a53b planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 3
diff changeset
2 <description>with Mesmer</description>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
3
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
4 <macros>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
5 <import>macros.xml</import>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
6 </macros>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
7
4
2675ff99a53b planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 3
diff changeset
8 <edam_operations>
2675ff99a53b planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 3
diff changeset
9 <edam_operation>operation_3443</edam_operation>
2675ff99a53b planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 3
diff changeset
10 </edam_operations>
2675ff99a53b planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 3
diff changeset
11
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
12 <expand macro="requirements"/>
1
02abff468d60 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 374e4528db4e3ce7984e2ed2c2bae55c19c17371
goeckslab
parents: 0
diff changeset
13 <expand macro="stdio"/>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
14
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
15 <command detect_errors="exit_code"><![CDATA[
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
16 python $script
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
17 ]]></command>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
18 <configfiles>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
19 <configfile name="script">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
20 import argparse
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
21 import os
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
22 import sys
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
23
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
24 import numpy as np
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
25 import tifffile
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
26 import zarr
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
27
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
28 from deepcell.applications import Mesmer
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
29
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
30 level = 0
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
31 is_ome=False
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
32 #if $image.file_ext == "ome.tiff":
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
33 is_ome=True
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
34 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
35
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
36 ## Grab params
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
37 nuc_kwargs = {}
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
38 wc_kwargs = {}
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
39
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
40
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
41 with tifffile.TiffFile("$image", is_ome=is_ome) as tiff:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
42
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
43 # Read single pyramid level
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
44 level_array = zarr.open(tiff.aszarr(series = 0, level = level))
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
45
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
46 ## grab the nuclear and membrane channels based on their indices add the markers along the channel axis
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
47 ## Tifffile should always read as (channel,X,Y)
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
48 #if $compartment_select.compartment != 'whole-cell':
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
49 nuc_kwargs = {
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
50 #if $compartment_select.nuclear_options.pixel_expansion != '':
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
51 'pixel_expansion': $compartment_select.nuclear_options.pixel_expansion,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
52 #end if
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
53 #for $key, $value in $compartment_select.nuclear_options.adv_options.items():
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
54 '$key': $value,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
55 #end for
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
56 'maxima_threshold': $compartment_select.nuclear_options.maxima_threshold
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
57 }
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
58 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
59
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
60 nuclear_indices = [int(x) for x in $nuclear_channels.split(',')]
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
61 nuclear_channels = level_array.oindex[nuclear_indices, :, :]
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
62 nuclear_channels = np.sum(nuclear_channels, axis = 0)
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
63
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
64 #if $compartment_select.compartment != 'nuclear':
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
65 wc_kwargs = {
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
66 #for $key, $value in $compartment_select.wc_options.adv_options.items():
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
67 '$key': $value,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
68 #end for
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
69 'maxima_threshold': $compartment_select.wc_options.maxima_threshold
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
70 }
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
71
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
72 membrane_indices = [int(x) for x in $compartment_select.wc_options.wc_channels.split(',')]
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
73 membrane_channels = level_array.oindex[membrane_indices, :, :]
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
74 membrane_channels = np.sum(membrane_channels, axis = 0)
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
75 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
76
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
77 ## stack the nuclear and membrane composite channels with nuclear in channel 0 and mem in channel 1
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
78 ## mesmer expects dimensions to be (X,Y,Channel) so axis = -1
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
79 #if $compartment_select.compartment == 'nuclear':
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
80 membrane_channels = np.zeros(nuclear_channels.shape)
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
81 #end if
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
82 formatted_image = np.stack((nuclear_channels,membrane_channels), axis=-1)
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
83
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
84 ## add batch dimension. Will have to be squeezed out later
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
85 formatted_image = np.expand_dims(formatted_image, 0)
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
86
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
87 ## Create the application
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
88 app = Mesmer()
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
89
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
90 ## Run segmentation
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
91 mask = app.predict(
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
92 formatted_image,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
93 image_mpp = $image_mpp,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
94 compartment = "$compartment_select.compartment",
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
95 pad_mode = 'constant',
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
96 postprocess_kwargs_whole_cell = wc_kwargs,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
97 postprocess_kwargs_nuclear = nuc_kwargs)
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
98
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
99 #if $squeeze:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
100 mask = np.squeeze(mask)
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
101 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
102
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
103 #if $compartment_select.compartment == 'both':
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
104 ## split the two-channel mask into separate outputs
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
105 #if $squeeze:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
106 tifffile.imsave( "WC_output_mask.tif", mask[:,:,0])
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
107 tifffile.imsave("NU_output_mask.tif", mask[:,:,1])
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
108 #else:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
109 tifffile.imsave( "WC_output_mask.tif", mask[:,:,:,0])
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
110 tifffile.imsave("NU_output_mask.tif", mask[:,:,:,1])
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
111 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
112 #else:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
113 ## save single-channel mask outputs as a tiff
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
114 tifffile.imsave("mask.tif", mask)
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
115 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
116 </configfile>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
117 </configfiles>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
118 <inputs>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
119 <param name="image" type="data" format="tiff, ome.tiff" label="Image containing the all marker(s)"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
120 <param name="nuclear_channels" type="text" value="0" label="The numerical indices of the channel(s) for the nuclear markers" help="No quotes, separated by comma. e.g. 0, 1."/>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
121 <param name="image_mpp" type="float" value="0.5" label="Resolution of the image in microns-per-pixel"/>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
122 <param name="squeeze" type="boolean" checked="true" label="Whether to np.squeeze the outputs before saving"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
123 <conditional name="compartment_select">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
124 <param name="compartment" type="select" label="Compartment for segmentation prediction: ">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
125 <option selected="true" value="whole-cell">Whole cell</option>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
126 <option value="nuclear">Nuclear</option>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
127 <option value="both">Both</option>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
128 </param>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
129 <when value="nuclear">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
130 <expand macro="nuclear_options_macro"/>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
131 </when>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
132 <when value="whole-cell">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
133 <expand macro="wc_options_macro"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
134 </when>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
135 <when value="both">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
136 <expand macro="nuclear_options_macro"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
137 <expand macro="wc_options_macro"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
138 </when>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
139 </conditional>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
140 </inputs>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
141
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
142 <outputs>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
143 <data format="tiff" name="nu_mask" from_work_dir="NU_output_mask.tif" label="${tool.name} on ${on_string}: Nuclear Mask">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
144 <filter>compartment_select['compartment'] == 'both'</filter>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
145 </data>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
146 <data format="tiff" name="wc_mask" from_work_dir="WC_output_mask.tif" label="${tool.name} on ${on_string}: Whole Cell Mask">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
147 <filter>compartment_select['compartment'] == 'both'</filter>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
148 </data>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
149 <data format="tiff" name="mask" from_work_dir="mask.tif" label="${tool.name} on ${on_string}: Mask">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
150 <filter>compartment_select['compartment'] != 'both'</filter>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
151 </data>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
152 </outputs>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
153 <tests>
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
154 <test expect_num_outputs="1">
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
155 <param name="image" value="deepcell_test.tiff" ftype="tiff"/>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
156 <param name="compartment" value="nuclear" />
1
02abff468d60 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 374e4528db4e3ce7984e2ed2c2bae55c19c17371
goeckslab
parents: 0
diff changeset
157 <param name="image_mpp" value="0.65" />
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
158 <param name="squeeze" value="True" />
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
159 <output name="mask" ftype="tiff">
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
160 <assert_contents>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
161 <has_size value="1049000" delta="1000" />
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
162 </assert_contents>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
163 </output>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
164 </test>
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
165 <test expect_num_outputs="1">
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
166 <param name="image" value="deepcell_test.tiff" ftype="tiff"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
167 <param name="compartment" value="whole-cell" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
168 <param name="wc_channels" value="0, 1" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
169 <param name="maxima_threshold" value="0.075" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
170 <param name="image_mpp" value="0.65" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
171 <param name="squeeze" value="True" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
172 <output name="mask" ftype="tiff">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
173 <assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
174 <has_size value="1049000" delta="1000" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
175 </assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
176 </output>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
177 </test>
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
178 <test expect_num_outputs="2">
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
179 <param name="image" value="deepcell_test.tiff" ftype="tiff"/>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
180 <param name="compartment" value="both" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
181 <param name="image_mpp" value="0.65" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
182 <param name="wc_channels" value="1" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
183 <param name="nuclear_channels" value="0" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
184 <param name="squeeze" value="True" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
185 <output name="wc_mask" ftype="tiff">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
186 <assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
187 <has_size value="1049000" delta="1000" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
188 </assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
189 </output>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
190 <output name="nu_mask" ftype="tiff">
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
191 <assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
192 <has_size value="1049000" delta="1000" />
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
193 </assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
194 </output>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
195 </test>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
196 </tests>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
197 <help><![CDATA[
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
198 ------
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
199 Mesmer
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
200 ------
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
201
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
202 **Mesmer** is a DeepCell application that uses a pre-trained model for predicting nuclear and whole cell segmentation from multiplex tissue data.
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
203
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
204 **Inputs**
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
205 1. a multiple tissue image that includes a nuclear marker and optionally cytoplasm/membrane markers
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
206
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
207 **Outputs**
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
208 1. the nuclear or whole cell segmentation mask
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
209 ]]></help>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
210 <expand macro="citations" />
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
211 </tool>