-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
52 lines (45 loc) · 1.11 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
43
44
45
46
47
48
49
50
51
52
log.info """\
TOOL_NAME $workflow.manifest.version
=============
NF version : $nextflow.version
runName : $workflow.runName
username : $workflow.userName
configs : $workflow.configFiles
profile : $workflow.profile
cmd line : $workflow.commandLine
start time : $workflow.start
projectDir : $workflow.projectDir
launchDir : $workflow.launchDir
workDir : $workflow.workDir
homeDir : $workflow.homeDir
input : ${params.input}
"""
.stripIndent()
include { FASTQC } from "./modules/local/qc.nf"
include { BWA_MEM } from './modules/CCBR/bwa/mem'
workflow.onComplete {
if (!workflow.stubRun && !workflow.commandLine.contains('-preview')) {
def message = Utils.spooker(workflow)
if (message) {
println message
}
}
}
workflow qc {
raw_fastqs = Channel
.fromPath(params.input)
.map { file -> tuple(file.simpleName, file) }
raw_fastqs | FASTQC
}
process yeet {
container "${params.containers.base}"
output:
stdout
script:
"""
echo ${params.input}
"""
}
workflow {
yeet | view
}