generated from fasterius/nbis-support-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
45 lines (36 loc) · 898 Bytes
/
main.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
#!/usr/bin/env nextflow
// Enable DSL2 syntax
nextflow.enable.dsl = 2
// Default parameters (can be overridden in `nextflow.config`)
params.resultsdir = "results/"
params.workdir = "work/"
params.publish_mode = "copy"
// Show workflow parameters before execution
log.info("""
NBIS support #0000
==================
Workflow parameters
Results directory : ${params.resultsdir}
Work directory : ${params.workdir}
Resume : ${workflow.resume}
Profile : ${workflow.profile}
""")
// Main workflow
workflow {
// Run workflow
PROCESS_01(ch_input)
}
// First process
process PROCESS_01 {
tag "${input}"
publishDir "${params.resultsdir}/",
mode: params.publish_mode
input:
path(ch_input)
output:
path("output_01")
script:
"""
touch output_01
"""
}