annotate process_intensities.xml @ 1:7a77ed0e579a draft

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 7e57ce999ddfeccfa54603874d3f7eba531f0a53
author goeckslab
date Wed, 05 Oct 2022 20:38:54 +0000
parents 34bb79f271fc
children 7f93f472a242
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
1 <tool id="cell_intensity_processing" name="Process single-cell intensities" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
2 <description>Options to correct for exposure time, autofluorescence subtraction, or compute signal-to-background ratio.</description>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
3 <macros>
34bb79f271fc 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>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
5 </macros>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
6 <expand macro="requirements" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
7 <command detect_errors="aggressive"><![CDATA[
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
8
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
9 ln -s '$quant_table' ./quant.csv &&
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
10
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
11 python '$script'
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
12
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
13 ]]></command>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
14 <configfiles>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
15 <configfile name = "script">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
16 import os
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
17 import numpy as np
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
18 import pandas as pd
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
19
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
20 cwd = os.getcwd()
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
21 quant = pd.read_csv(os.path.join(cwd, 'quant.csv'), index_col = 0)
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
22 marker_df = pd.read_csv('$channel_csv')
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
23
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
24 markers_to_normalize = marker_df['marker_name'].to_list()
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
25
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
26 for marker in markers_to_normalize:
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
27
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
28 #if $exp.exposure == 'correct_exposure':
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
29 exp_time = marker_df.loc[marker_df['marker_name'] == marker, '${exp.exp_col}'].values[0]
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
30 quant[marker] = quant[marker] / exp_time
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
31 #end if
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
32
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
33 #if $AF_method.select_method == 'dont_adjust':
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
34 pass
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
35 #elif $AF_method.select_method == 'subtract':
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
36 current_AF_channel = marker_df.loc[marker_df['marker_name'] == marker, '${AF_method.AF_col}'].values[0]
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
37 if current_AF_channel in markers_to_normalize:
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
38 quant[marker] = quant[marker] - quant[current_AF_channel]
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
39 quant[marker] = np.where(quant[marker] &lt; 0, 0, quant[marker])
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
40 #elif $AF_method.select_method == 'SBR':
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
41 current_AF_channel = marker_df.loc[marker_df['marker_name'] == marker, '${AF_method.AF_col}'].values[0]
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
42 if current_AF_channel in markers_to_normalize:
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
43 quant[marker] = quant[marker] / quant[current_AF_channel]
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
44 #end if
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
45
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
46 quant.to_csv(os.path.join(cwd, 'processed_quant.csv'))
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
47 </configfile>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
48 </configfiles>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
49 <inputs>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
50 <param name="quant_table" type="data" format="csv" label="Input quantification table (csv)" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
51 <param name="channel_csv" type="data" format="csv" label="Channel Metadata (csv)" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
52 <conditional name="exp">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
53 <param name="exposure" type="select" label="Select whether to divide intensities by exposure times">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
54 <option value="dont_correct_exposure">No exposure correction</option>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
55 <option value="correct_exposure">Exposure correction</option>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
56 </param>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
57 <when value="dont_correct_exposure" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
58 <when value="correct_exposure">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
59 <param name="exp_col" type="text" value="exposure_time" label="Name of column in markers file containing exposure times" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
60 </when>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
61 </conditional>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
62 <conditional name="AF_method">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
63 <param name="select_method" type="select" label="Select method of autofluorescence/background adjustment">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
64 <option value="dont_adjust">No AF/background adjustment</option>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
65 <option value="subtract">Autofluorescence subtraction</option>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
66 <option value="SBR">Signal-to-background ratio</option>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
67 </param>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
68 <when value="dont_adjust" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
69 <when value="subtract">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
70 <param name="AF_col" type="text" value="AF_channel" label="Name of column in markers file containing respective AF channel for each marker" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
71 </when>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
72 <when value="SBR">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
73 <param name="AF_col" type="text" value="AF_channel" label="Name of column in markers file containing respective AF channel for each marker" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
74 </when>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
75 </conditional>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
76 </inputs>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
77 <outputs>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
78 <data name="processed_quant" from_work_dir="processed_quant.csv" format="csv"/>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
79 </outputs>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
80 <tests>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
81 <test>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
82 <param name="quant_table" value="intensities.csv" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
83 <param name="channel_csv" value="intensity_channels.csv" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
84 <conditional name="exp">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
85 <param name="exposure" value="correct_exposure" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
86 </conditional>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
87 <conditional name="AF_method">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
88 <param name="select_method" value="SBR" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
89 </conditional>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
90 <output name="processed_quant" ftype="csv">
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
91 <assert_contents>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
92 <has_n_columns n="15" sep="," />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
93 <has_n_lines n="15" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
94 </assert_contents>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
95 </output>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
96 </test>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
97 </tests>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
98 <help><![CDATA[
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
99 This tool can be used to perform several different common signal processing operations for single-cell mean marker intensities from multiplex
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
100 tissue imaging data.
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
101
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
102 **Inputs**
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
103 1. Comma-separated feature observation matrix that is generated by **MCQuant**
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
104 2. Comma-separated channel metadata file that maps marker names to exposure times (optional) and respective AF/bg channels (optional)
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
105
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
106 **Options**
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
107 1. Exposure correction - Divide single-cell intensities by respective exposure time in channel metadata
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
108 2. Background subtraction - Subtract single-cell mmean marker intensities by respective AF/bg channel mean intensity specified in channel metadata
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
109 3. Signal-to-background ratio - Divide single-cell mmean marker intensities by respective AF/bg channel mean intensity specified in channel metadata
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
110
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
111 **Outputs**
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
112 1. Feature observation matrix with processed intensities for all markers in channel metadata file.
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
113 CellIDs, centroids, and morphological data remain unchanged.
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
114 ]]></help>
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
115 <expand macro="citations" />
34bb79f271fc planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff changeset
116 </tool>