-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.nf
56 lines (42 loc) · 1.19 KB
/
test.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
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
workflow {
println "\nGeneMAP NGS WORKFLOW: TEST\n"
println "pe=${params.pe}"
println "aligner=${params.aligner}"
println "ftype=${params.input_ftype}"
println "input_dir=${params.input_dir}"
println "output_dir=${params.output_dir}"
println "output_prefix=${params.output_prefix}"
println "single_caller=${params.single_caller}"
println "exome=${params.exome}"
println "joint_caller=${params.joint_caller}"
println "gvcf_dir=${params.gvcf_dir}"
println "spark=${params.spark}"
println "threads=${params.threads}"
println "njobs=${params.njobs}"
println ""
plink()
}
workflow.onComplete {
println "Workflow completed at: ${workflow.complete}"
println " Execution status: ${ workflow.success ? 'OK' : 'failed'}"
}
workflow.onError{
println "workflow execution stopped with the following message: ${workflow.errorMessage}"
}
process plink() {
// directives
tag "processing ..."
label 'plink'
label 'test'
debug true
//echo true
script:
"""
echo -e "\nPLINK2 is used for the test as it is light-weight and easily pulled from docker hub\n"
plink2 \
--help \
--file
"""
}