-
Notifications
You must be signed in to change notification settings - Fork 1
/
rnaseq-flow-implicit.nf
46 lines (39 loc) · 1.09 KB
/
rnaseq-flow-implicit.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
nextflow.enable.dsl=2
/*
* include required modules
*/
include { index; quantification; fastqc; multiqc } from './rnaseq-modules.nf'
// params.reads = "$baseDir/data/ggal/gut_{1,2}.fq"
// params.transcript = "$baseDir/data/ggal/transcriptome.fa"
// params.multiqc = "$baseDir/multiqc"
// params.outdir = "results"
log.info """\
Params in subworkflow are inhereted
===================================
transcriptome: ${params.transcript}
reads : ${params.reads}
outdir : ${params.outdir}
"""
.stripIndent()
// read_pairs_ch = Channel.fromFilePairs( params.reads, checkIfExists:true )
/*
* define the data analysis workflow
*/
workflow rnaseq_flow {
// required inputs
take:
transcriptome
read_files
// workflow implementation
main:
index(transcriptome)
quantification(index.out, read_files)
fastqc(read_files)
multiqc( quantification.out.mix(fastqc.out).collect() )
}
/*
* Invocation of the data analysis workflow
*/
workflow {
rnaseq_flow( params.transcript, read_pairs_ch )
}