-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti-modal.nf
56 lines (42 loc) · 1.12 KB
/
multi-modal.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
if (nextflow.version.matches(">=20.07.1")){
nextflow.enable.dsl=2
}else{
// Support lower version of nextflow
nextflow.preview.dsl=2
}
projectDir = workflow.projectDir
params.path_test_fMRI = "/home/lining/xmn/model/SCZ/GAD/56_new/fMRI.csv"
params.path_test_sMRI = "/home/lining/xmn/model/SCZ/GAD/56_new/sMRI.csv"
params.judge = "y"
workflow {
depression()
}
process exitCheck {
output:
val ' '
if (file("${params.path_test_fMRI}").exist() & file("${params.path_test_sMRI}").exist())) {
exit 1
}
"""
echo error
"""
}
process depression {
script:
if (params.judge == "Main")
{
println "Predict with Graph network"
println "${params.path_test_fMRI}"
println "${params.path_test_sMRI}"
println params.judge
}
else {
println "Predict with RF"
}
"""
python ${projectDir}/main_SCZ_dynamic_edges_dense_find_seed_COBRE.py \
--path_test_fMRI ${params.path_test_fMRI} \
--path_test_sMRI ${params.path_test_sMRI} \
--judge ${params.judge}
"""
}