-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
executable file
·56 lines (43 loc) · 1.66 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
53
54
55
56
#!/usr/bin/env nextflow
import edu.cornell.eipm.messaging.zeromess.messages.*
import edu.cornell.eipm.messaging.zeromess.ZeroMessInitializer
include { SAYHELLOINITALIAN; SAYHELLOINFRENCH; SAYHELLOINSPANISH; SAYHELLOINENGLISH } from './modules/sayHelloLibrary.nf'
/*
========================================================================================
Hello Mess Pipeline
========================================================================================
eipm/hello-mess-nf
@Homepage / Documentation
https://github.com/eipm/hello-mess-nf
----------------------------------------------------------------------------------------
*/
log.info """\
=======================================
HELLO-MESS-NF P I P E L I N E
=======================================
""".stripIndent()
//initialize the API
ZeroMessInitializer.init(params.pipelineName,
params.dispatcherURL,
workflow.sessionId,
params.pipelineMessagingEnabled)
log.info "Pipeline has started"
workflow SAYHELLOINSEVERALLANGUAGES {
take:
welcome
main:
welcome | SAYHELLOINITALIAN | SAYHELLOINFRENCH | SAYHELLOINSPANISH | SAYHELLOINENGLISH
emit:
SAYHELLOINENGLISH.out.english_file
}
workflow {
PipelineMessage.started(workflow).forTopic("pipelineEvents")
.data('message', 'Hope it works').send()
SAYHELLOINSEVERALLANGUAGES(Channel.fromPath 'welcome.txt')
SAYHELLOINSEVERALLANGUAGES.out | splitText | view
}
workflow.onComplete {
log.info "Pipeline completed at: $workflow.complete"
PipelineMessage.completed(workflow).forTopic("pipelineEvents")
.data('exit status', 'OK').send()
}