-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
34 lines (29 loc) · 1.07 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
log.info "=================================================="
log.info " ASSEMBLAGE "
log.info "=================================================="
log.info "Track: $params.track "
log.info "=================================================="
nextflow.enable.dsl=2
// Workflows
include { HYBRID_ASSEMBLY } from "./workflows/HYBRID_ASSEMBLY.nf"
include { DRAFT_ASSEMBLY } from "./workflows/DRAFT_ASSEMBLY.nf"
workflow {
if (params.track == "hybrid") {
HYBRID_ASSEMBLY()
}
if (params.track == "draft") {
DRAFT_ASSEMBLY()
}
}
workflow.onComplete {
log.info "".center(60, "=")
log.info "Assemblage $params.track Complete!".center(60)
log.info "Output directory: $params.out_dir".center(60)
log.info "Duration: $workflow.duration".center(60)
log.info "Command line: $workflow.commandLine".center(60)
log.info "Nextflow version: $workflow.nextflow.version".center(60)
log.info "".center(60, "=")
}
workflow.onError {
println "Pipeline execution stopped with the following message: ${workflow.errorMessage}"
}