-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.nf
35 lines (29 loc) · 886 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
/*
* TOFU-MAaPO
* By Eike Matthias Wacker (e.wacker@ikmb.uni-kiel.de)
* Based on https://github.com/marchoeppner/metagenomic-profiling Release 1.2 by Marc P. Hoeppner (m.hoeppner@ikmb.uni-kiel.de)
*/
/*
* Enable DSL 2 syntax
*/
nextflow.enable.dsl = 2
WorkflowHeaderHelp.initialise(workflow, params, log)
WorkflowCheck.startuptests(workflow, params, log)
include { tofumaapo } from './workflows/tofumaapo'
include { tofumaapo_salmon } from './workflows/tofumaapo_salmon'
include { tofumaapo_sylph } from './workflows/tofumaapo_sylph'
//params(params)
workflow {
if(params.salmon_processing){
tofumaapo_salmon()
}else if(params.sylph_processing){
tofumaapo_sylph()
}else{
tofumaapo()
}
}
workflow.onComplete {
log.info "========================================="
log.info "Duration: $workflow.duration"
log.info "========================================="
}