-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnf_feature_augment_modules.nf
More file actions
48 lines (35 loc) · 994 Bytes
/
nf_feature_augment_modules.nf
File metadata and controls
48 lines (35 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
params.TOOL_FOLDER = "$moduleDir/bin/feature_augment"
params.publishdir = "./nf_output"
process processXIC {
publishDir "$params.publishdir/perfilecalculation", mode: 'copy'
conda "$params.TOOL_FOLDER/conda_env.yml"
maxForks 12
input:
file input_feature
each file(input_spectra_file)
val mz_da_tolernace
val rt_min_tolernace
output:
file '*_quant.csv'
"""
python $params.TOOL_FOLDER/feature_augment_xic.py \
$input_spectra_file \
$input_feature \
${input_spectra_file}_quant.csv \
--mz_da_tolernace "${mz_da_tolernace}" \
--rt_min_tolernace "${rt_min_tolernace}"
"""
}
process reformatQuant {
publishDir "$params.publishdir/feature_augment_quant", mode: 'copy'
conda "$params.TOOL_FOLDER/conda_env.yml"
input:
file merged_quant_file
output:
file 'feature_table.csv'
"""
python $params.TOOL_FOLDER/reformat_quant.py \
$merged_quant_file \
feature_table.csv
"""
}