-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.nf
50 lines (41 loc) · 1.36 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
//main.nf
nextflow.enable.dsl=2
//show help message
if(params.help) {
include {HelpMessage} from './modules/help'
HelpMessage()
exit 0
}
//run information
log.info"""
====================================================
nf_CRACpipeline
====================================================
Input/output options
input : $params.reads
output directory : $params.outdir
Nextflow options
launchDir : $workflow.launchDir
workDir : $workflow.workDir
profile : $workflow.profile"""
if (workflow.containerEngine){
log.info """ container : $workflow.containerEngine"""
}
log.info"""
config options
configFiles : $workflow.configFiles
Max job request options
max cpu : $params.max_cpus
max mem : $params.max_memory
max rt : $params.max_time
====================================================
"""
//import subworkflows
include {CRAC_PROCESS} from './subworkflows/CRAC_PROCESS'
include {CRAC_ANALYSIS} from './subworkflows/CRAC_ANALYSIS'
//main workflow
workflow {
read_ch = channel.fromPath(params.reads, checkIfExists: true ).map(file -> tuple(file.SimpleName, file))
CRAC_PROCESS(read_ch,params.skip_demultiplex)
CRAC_ANALYSIS(CRAC_PROCESS.out.alignment,CRAC_PROCESS.out.alignment_index)
}