-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcombine.nf
57 lines (44 loc) · 1.37 KB
/
combine.nf
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
49
50
51
52
53
54
55
56
57
params.ms_instrument = "Lumos"
params.ms_energy = 0.34
params.prefix = "test"
params.mem = 80
instrument = params.ms_instrument
energy = params.ms_energy
threads = params.cpu
memory = params.mem
denovo_feature = file(params.denovo_feature)
dbsearch_feature = file(params.dbsearch_feature)
model_dir = file(params.model)
output_path = file(params.out_dir)
sample = params.prefix
process combine_features {
tag "$sample"
container "0731wsk/proteomics"
containerOptions "--user root"
publishDir "${output_path}", mode: "copy", overwrite: true
input:
file (dbsearch_feature)
file (denovo_feature)
output:
file ('feature.txt') into feature_file_ch
script:
"""
#!/bin/sh
python3 ${baseDir}/bin/combine_feature.py $denovo_feature $dbsearch_feature ./feature.txt
"""
}
process predict_score {
tag "$sample"
container "0731wsk/proteomics"
containerOptions "--user root"
publishDir "${output_path}", mode: "copy", overwrite: true
input:
file (feature_file) from feature_file_ch
output:
set file ('result_all.csv'),file('result.csv') into result_file_ch
script:
"""
#!/bin/sh
python3 ${baseDir}/bin/predict_score.py $feature_file $model_dir ./result_all.csv ./result.csv
"""
}