annotate mesmer.xml @ 3:c60b810d570d draft

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
author goeckslab
date Tue, 28 Nov 2023 19:46:58 +0000
parents 187918c47051
children 2675ff99a53b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
1 <tool id="mesmer" name="Mesmer" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="19.01">
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
2 <description>Mesmer for whole-cell segmentation of multiplexed tissue imaging data</description>
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
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
8 <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
9 <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
10
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
11 <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
12 python $script
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
13 ]]></command>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
14 <configfiles>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
15 <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
16 import argparse
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
17 import os
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
18 import sys
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
19
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
20 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
21 import tifffile
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
22 import zarr
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 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
25
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
26 level = 0
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
27 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
28 #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
29 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
30 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
31
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
32 ## Grab params
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
33 nuc_kwargs = {}
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
34 wc_kwargs = {}
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
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
37 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
38
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
39 # 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
40 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
41
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
42 ## 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
43 ## 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
44 #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
45 nuc_kwargs = {
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
46 #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
47 '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
48 #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
49 #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
50 '$key': $value,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
51 #end for
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
52 '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
53 }
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
54 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
55
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
56 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
57 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
58 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
59
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
60 #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
61 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
62 #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
63 '$key': $value,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
64 #end for
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
65 '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
66 }
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
67
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
68 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
69 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
70 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
71 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
72
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
73 ## 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
74 ## 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
75 #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
76 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
77 #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
78 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
79
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
80 ## 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
81 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
82
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
83 ## 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
84 app = Mesmer()
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
85
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
86 ## Run segmentation
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
87 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
88 formatted_image,
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
89 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
90 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
91 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
92 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
93 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
94
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
95 #if $squeeze:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
96 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
97 #end if
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
98
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
99 #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
100 ## 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
101 #if $squeeze:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
102 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
103 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
104 #else:
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
105 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
106 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
107 #end if
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 ## 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
110 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
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 </configfile>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
113 </configfiles>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
114 <inputs>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
115 <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
116 <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
117 <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
118 <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
119 <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
120 <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
121 <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
122 <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
123 <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
124 </param>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
125 <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
126 <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
127 </when>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
128 <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
129 <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
130 </when>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
131 <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
132 <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
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>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
135 </conditional>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
136 </inputs>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
137
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
138 <outputs>
2
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
139 <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
140 <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
141 </data>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
142 <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
143 <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
144 </data>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
145 <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
146 <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
147 </data>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
148 </outputs>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
149 <tests>
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
150 <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
151 <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
152 <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
153 <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
154 <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
155 <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
156 <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
157 <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
158 </assert_contents>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
159 </output>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
160 </test>
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
161 <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
162 <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
163 <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
164 <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
165 <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
166 <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
167 <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
168 <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
169 <assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
170 <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
171 </assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
172 </output>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
173 </test>
3
c60b810d570d planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit caf99c99d5698c3524e6eb7fd43c0197c2a3b3cb
goeckslab
parents: 2
diff changeset
174 <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
175 <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
176 <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
177 <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
178 <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
179 <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
180 <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
181 <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
182 <assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
183 <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
184 </assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
185 </output>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
186 <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
187 <assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
188 <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
189 </assert_contents>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
190 </output>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
191 </test>
187918c47051 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 40737a3341bb2352f4f8560889bb53362fd624be
goeckslab
parents: 1
diff changeset
192 </tests>
0
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
193 <help><![CDATA[
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
194 ------
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
195 Mesmer
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
196 ------
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
197
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
198 **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
199
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
200 **Inputs**
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
201 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
202
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
203 **Outputs**
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
204 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
205 ]]></help>
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
206 <expand macro="citations" />
53240d7c1fc5 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mesmer commit 5fb6aa9066c68d9972b3cc4be13503a952f952a5
goeckslab
parents:
diff changeset
207 </tool>