Mercurial > repos > goeckslab > cell_intensity_processing
annotate process_intensities.xml @ 5:afa3cb2110eb draft
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
author | goeckslab |
---|---|
date | Thu, 11 Jul 2024 22:41:26 +0000 |
parents | 5d541df02496 |
children |
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@"> |
2
7f93f472a242
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents:
0
diff
changeset
|
2 <description></description> |
0
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> |
2
7f93f472a242
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents:
0
diff
changeset
|
6 <edam_operations> |
7f93f472a242
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents:
0
diff
changeset
|
7 <edam_operation>operation_3443</edam_operation> |
7f93f472a242
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents:
0
diff
changeset
|
8 </edam_operations> |
0
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
9 <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
|
10 <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
|
11 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
12 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
|
13 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
14 python '$script' |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
15 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
16 ]]></command> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
17 <configfiles> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
18 <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
|
19 import os |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
20 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
|
21 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
|
22 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
23 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
|
24 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
|
25 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
|
26 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
27 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
|
28 |
3
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
29 #if $AF_method.select_method == 'SBR': |
5
afa3cb2110eb
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit bc438db690e41823909b32b693f297d942433a43
goeckslab
parents:
4
diff
changeset
|
30 AF_markers = [x for x in list(marker_df['${AF_method.AF_col}'].unique()) if x not in ['None',np.nan]] |
3
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
31 print(f'Detected {quant[AF_markers].eq(0.0).any(axis=1).sum()} cells with AF values of zero in the dataset') |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
32 |
4
5d541df02496
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5cf3005f482381216061eb8718aba8f5c8bcb0d5
goeckslab
parents:
3
diff
changeset
|
33 #if $AF_method.AF_filter == 'filter': |
3
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
34 pre_filter_count = len(quant) |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
35 quant = quant.loc[quant[AF_markers].ne(0.0).any(axis=1),:] |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
36 print(f'Filtered out {pre_filter_count - len(quant)} cells that had AF values of 0.0') |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
37 |
4
5d541df02496
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 5cf3005f482381216061eb8718aba8f5c8bcb0d5
goeckslab
parents:
3
diff
changeset
|
38 #elif $AF_method.AF_filter == 'clip': |
3
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
39 print('Clipping all AF values equal to 0.0 to the minimum non-zero AF value') |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
40 for af in AF_markers: |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
41 quant[af] = quant[af].clip(lower = quant[af][quant[af].ne(0.0)].min()) |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
42 |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
43 #end if |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
44 #end if |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
45 |
0
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
46 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
|
47 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
48 #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
|
49 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
|
50 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
|
51 #end if |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
52 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
53 #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
|
54 pass |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
55 #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
|
56 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
|
57 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
|
58 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
|
59 quant[marker] = np.where(quant[marker] < 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
|
60 #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
|
61 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
|
62 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
|
63 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
|
64 #end if |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
65 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
66 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
|
67 </configfile> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
68 </configfiles> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
69 <inputs> |
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="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
|
71 <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
|
72 <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
|
73 <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
|
74 <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
|
75 <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
|
76 </param> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
77 <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
|
78 <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
|
79 <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
|
80 </when> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
81 </conditional> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
82 <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
|
83 <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
|
84 <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
|
85 <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
|
86 <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
|
87 </param> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
88 <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
|
89 <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
|
90 <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
|
91 </when> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
92 <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
|
93 <param name="AF_col" type="text" value="AF_channel" label="Name of column in markers file containing respective AF channel for each marker" /> |
3
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
94 <param name="AF_filter" type="select" label="Select whether to clip or filter out AF values equal to 0"> |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
95 <option value="clip">Clip autofluorescence values of 0.0 to the minimum non-zero autofluorescence value</option> |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
96 <option value="filter">Filter out cells with autofluorescence values equal to 0.0</option> |
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
97 </param> |
0
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
98 </when> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
99 </conditional> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
100 </inputs> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
101 <outputs> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
102 <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
|
103 </outputs> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
104 <tests> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
105 <test> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
106 <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
|
107 <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
|
108 <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
|
109 <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
|
110 </conditional> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
111 <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
|
112 <param name="select_method" value="SBR" /> |
3
4f5abe01531c
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 4d6008b58593174b87c9d9cf50c79ddfafda7637
goeckslab
parents:
2
diff
changeset
|
113 <param name="AF_filter" value="clip" /> |
0
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
114 </conditional> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
115 <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
|
116 <assert_contents> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
117 <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
|
118 <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
|
119 </assert_contents> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
120 </output> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
121 </test> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
122 </tests> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
123 <help><![CDATA[ |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
124 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
|
125 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
|
126 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
127 **Inputs** |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
128 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
|
129 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
|
130 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
131 **Options** |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
132 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
|
133 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
|
134 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
|
135 |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
136 **Outputs** |
2
7f93f472a242
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents:
0
diff
changeset
|
137 1. Feature observation matrix with processed intensities for all markers in channel metadata file. CellIDs, centroids, and morphological data remain unchanged. |
0
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
138 ]]></help> |
34bb79f271fc
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 339f5497446066ca76c27460da2eef4f6e0fa36e
goeckslab
parents:
diff
changeset
|
139 <expand macro="citations" /> |
2
7f93f472a242
planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils commit 130ef7e8ae6cab35866b72617e53d35acc11475a
goeckslab
parents:
0
diff
changeset
|
140 </tool> |