-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.nf
42 lines (32 loc) · 1.24 KB
/
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
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { NFQUARTO_EXAMPLE } from './subworkflow/local/example.nf'
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check mandatory parameters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
// def checkPathParamList = [params.paramA, params.paramB, params.paramC]
// for (param in checkPathParamList) if (param) file(param, checkIfExists: true)
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RUN ALL WORKFLOWS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
workflow {
// Description
ch_input = Channel.fromPath(params.input, checkIfExists: true)
// Description
ch_template = Channel.fromPath(params.template, checkIfExists: true)
ch_page_config = Channel.fromPath(params.page_config, checkIfExists: true)
.collect()
NFQUARTO_EXAMPLE(
ch_input
)
}
workflow.onComplete {
log.info(
workflow.success ? "\nDone! Open the following report in your browser -> ${launchDir}/${params.project_name}/report/index.html\n" :
"Oops... Something went wrong"
)
}