-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.nf
50 lines (37 loc) · 1.24 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
#!/usr/bin/env nextflow
/*
* enables modules
*/
nextflow.enable.dsl=2
/*
* Default pipeline parameters. They can be overriden on the command line eg.
* given `params.foo` specify on the run command line `--foo some_value`.
*/
params.reads = "$baseDir/data/*.fastq.gz" //default: "$baseDir/data/*.fastq.gz" + params.singleEnd = true, alternative: "$baseDir/data/*_{1,2}*.fastq.gz" + params.singleEnd = false
params.outdir = "output"
log.info """\
reads: ${params.reads}
hisat2_index: ${params.hisat2_index}
gtf_file: ${params.gtf_file}
bed_file: ${params.bed_file}
singleEnd: ${params.singleEnd}
outdir: ${params.outdir}
tracedir: ${params.tracedir}
"""
.stripIndent()
include { rnaseqFlow } from './workflows/rnaseq-flow.nf'
if( !params.reads ) {
exit 1, "\nPlease give in reads via --reads <location> \n"
}
/*
* main script flow
*/
workflow {
rnaseqFlow( params.reads )
}
/*
* completion handler
*/
workflow.onComplete {
log.info ( workflow.success ? "\nDone! Open the following reports in your browser --> $params.outdir/multiqc_report.html and $params.tracedir/execution_report.html\n" : "Oops .. something went wrong" )
}