-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
executable file
·78 lines (61 loc) · 2.02 KB
/
main.nf
File metadata and controls
executable file
·78 lines (61 loc) · 2.02 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env nextflow
/*
========================================================================================
HELP
========================================================================================
*/
def logo = NextflowTool.logo(workflow, params.monochrome_logs)
log.info logo
NextflowTool.commandLineParams(workflow.commandLine, log, params.monochrome_logs)
def printHelp() {
NextflowTool.help_message(
"${workflow.ProjectDir}/schema.json",
[
"${workflow.ProjectDir}/assorted-sub-workflows/mixed_input/schema.json"
],
params.monochrome_logs, log
)
}
def validateParameters() {
if (params.isolate && params.careful){
throw new Exception("""The parameters `--isolate` and `--careful` are exclusive and cannot be specified together. You may need to use `--isolate false --careful` to turn off the default `isolate` value and enable `careful`.""")
}
}
/*
========================================================================================
IMPORT MODULES/SUBWORKFLOWS
========================================================================================
*/
//
// MODULES
//
include { UNICYCLER } from './modules/unicycler'
include { QUAST; SUMMARY } from './modules/quast'
//
// SUBWORKFLOWS
//
include { MIXED_INPUT } from './assorted-sub-workflows/mixed_input/mixed_input.nf'
/*
========================================================================================
RUN MAIN WORKFLOW
========================================================================================
*/
validateParameters()
workflow {
if (params.help) {
printHelp()
exit(0)
}
MIXED_INPUT
| UNICYCLER
//run quast on all assembiles
QUAST(UNICYCLER.out.assembly)
QUAST.out.quast_out
| collect
| SUMMARY
}
/*
========================================================================================
THE END
========================================================================================
*/