annotate rename_tiff_channels.xml @ 6:4763362914f4 draft default tip

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
author goeckslab
date Mon, 15 Jul 2024 21:37:39 +0000
parents 61fd94c7ce42
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
1 <tool id="rename_tiff_channels" name="Rename OME-TIFF channels" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
2 <description>with ome-types</description>
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
3 <macros>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
4 <import>macros.xml</import>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
5 </macros>
2
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
6
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
7 <edam_operations>
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
8 <edam_operation>operation_3443</edam_operation>
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
9 </edam_operations>
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
10
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
11 <expand macro="requirements"/>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
12
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
13 <stdio>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
14 <regex match=".*XMLSyntaxError.*"
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
15 source="stderr"
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
16 level="fatal"
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
17 description="XML metadata does not adhere to OME format. Considering converting image to OME-TIFF" />
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
18 </stdio>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
19
2
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
20 <expand macro="version_cmd"/>
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
21
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
22 <command detect_errors="aggressive"><![CDATA[
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
23
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
24 cp '$image' ./renamed_image.ome.tiff &&
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
25
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
26 ln -s '$channel_csv' ./channels.csv &&
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
27
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
28 python '$script'
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
29
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
30 ]]></command>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
31 <configfiles>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
32 <configfile name = "script">
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
33 import os
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
34 import sys
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
35 import argparse
5
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
36 from itertools import cycle
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
37 import pandas as pd
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
38 import ome_types
5
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
39 from ome_types.model import channel, Color
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
40 from tifffile import tiffcomment
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
41
5
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
42 # setting default colors to match avivator
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
43 colors = [
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
44 (0,0,255,1.0), # blue
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
45 (0,255,0,1.0), # green
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
46 (255,0,255,1.0), # magenta
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
47 (255,255,0,1.0), # yellow
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
48 (255,127,0,1.0), # orange
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
49 (0,255,255,1.0), # cyan
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
50 (255,255,255,1.0), # white
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
51 (255,0,0,1.0) # red
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
52 ]
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
53
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
54 # convert to repeatable object of primitive int colors
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
55 color_cycle = cycle([Color(c).as_int32() for c in colors])
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
56
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
57 cwd = os.getcwd()
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
58
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
59 channels_df = pd.read_csv(os.path.join(cwd, 'channels.csv'))
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
60
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
61 original_ome_xml = tiffcomment(os.path.join(cwd, 'renamed_image.ome.tiff'))
6
4763362914f4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
goeckslab
parents: 5
diff changeset
62 working_ome = ome_types.from_xml(original_ome_xml)
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
63
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
64 for l_idx, level in enumerate(working_ome.images):
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
65
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
66 for c_idx, channel in enumerate(level.pixels.channels):
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
67
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
68 new_name = channels_df.loc[c_idx, 'marker_name']
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
69 channel.name = new_name
5
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
70 channel.color = next(color_cycle)
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
71
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
72 if l_idx == 0:
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
73
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
74 print(f"Channel {c_idx} renamed to {new_name}")
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
75
6
4763362914f4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
goeckslab
parents: 5
diff changeset
76 updated_ome_xml = working_ome.to_xml().encode()
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
77 tiffcomment(os.path.join(cwd, 'renamed_image.ome.tiff'), updated_ome_xml)
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
78
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
79 print("Updated OME-TIFF metadata:")
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
80 print(tiffcomment(os.path.join(cwd, 'renamed_image.ome.tiff')))
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
81 </configfile>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
82 </configfiles>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
83 <inputs>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
84 <param name="image" type="data" format="ome.tiff" label="Input image in OME-tiff format"/>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
85 <param name="channel_csv" type="data" format="csv" label="Channel Metadata CSV"/>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
86 </inputs>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
87 <outputs>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
88 <data name="renamed_image" format="ome.tiff" from_work_dir="renamed_image.ome.tiff" label="${tool.name} on ${on_string}"/>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
89 </outputs>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
90 <tests>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
91 <test>
5
61fd94c7ce42 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents: 2
diff changeset
92 <param name="image" value="rename_test.ome.tiff" />
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
93 <param name="channel_csv" value="rename_channels.csv" />
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
94 <output name="renamed_image" ftype="ome.tiff">
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
95 <assert_contents>
6
4763362914f4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
goeckslab
parents: 5
diff changeset
96 <has_size value="900000" delta="50000" />
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
97 </assert_contents>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
98 </output>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
99 <assert_stdout>
6
4763362914f4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
goeckslab
parents: 5
diff changeset
100 <has_text text="Channel 0 renamed to Hematoxylin" />
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
101 <has_text text="Updated OME-TIFF metadata" />
6
4763362914f4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5c324d06ad54dca76aa2b4c8118df5654f49da66
goeckslab
parents: 5
diff changeset
102 <has_text text="µm" />
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
103 </assert_stdout>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
104 </test>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
105 </tests>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
106 <help><![CDATA[
2
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
107 Given an OME.TIFF image and channel metadata CSV file, rename the image channels in the
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
108 OME XML metadata. CSV file must contain column 'marker_name' which will populate the XML
d2c59a1ac0c4 planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents: 0
diff changeset
109 metadata with channel names in the order provided in the CSV file.
0
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
110 ]]></help>
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
111 <expand macro="citations" />
18f6be63414c planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
112 </tool>