-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqc.nf
51 lines (42 loc) · 1.13 KB
/
qc.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
///////////////////// FASTQC ///////////////////////
process fastqc {
tag "FastQC: $fqfile.SimpleName"
container 'https://depot.galaxyproject.org/singularity/fastqc:0.11.9--0'
// publishDir "${params.outdir}/reports", pattern: '*.html', mode: 'copy'
cpus params.max_cpus
input:
path fqfile
output:
path '*.html', emit: reports
path '*.zip', emit: data
"""
fastqc --format fastq --threads $task.cpus --noextract --nogroup ${fqfile}
"""
}
///////////////////// MULTIQC /////////////////////
multiqc_config = "$moduleDir/assets/multiqc.yaml"
process multiqc {
tag "Collate QC results"
container 'https://depot.galaxyproject.org/singularity/multiqc:1.9--pyh9f0ad1d_0'
publishDir params.outdir, mode: 'copy'
input:
path files
path config
output:
path 'QCsummary.html'
path 'QCsummary_data'
"""
multiqc -ip -n QCsummary \
--module fastqc \
--config $config \
--title "$params.title" \
.
"""
}
workflow qc {
take:
file_list
main:
fastqc(file_list)
multiqc(fastqc.out.data.collect(), multiqc_config)
}