-
Notifications
You must be signed in to change notification settings - Fork 149
/
Copy pathmultiqc.nf
74 lines (60 loc) · 2 KB
/
multiqc.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
process MULTIQC {
label 'process_medium'
conda "bioconda::multiqc=1.25.1"
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
? 'https://depot.galaxyproject.org/singularity/multiqc:1.25.1--pyhdfd78af_0'
: 'biocontainers/multiqc:1.25.1--pyhdfd78af_0'}"
input:
path workflow_summary
path multiqc_config
path mqc_custom_config
path logo
path "fastqc/*"
path "trimgalore/fastqc/*"
path "trimgalore/*"
path "alignment/library/*"
path "alignment/library/*"
path "alignment/library/*"
path "alignment/merged_library/unfiltered/*"
path "alignment/merged_library/unfiltered/*"
path "alignment/merged_library/unfiltered/*"
path "alignment/merged_library/unfiltered/picard_metrics/*"
path "alignment/merged_library/filtered/*"
path "alignment/merged_library/filtered/*"
path "alignment/merged_library/filtered/*"
path "alignment/merged_library/filtered/picard_metrics/*"
path "preseq/*"
path "deeptools/*"
path "deeptools/*"
path "phantompeakqualtools/*"
path "phantompeakqualtools/*"
path "phantompeakqualtools/*"
path "phantompeakqualtools/*"
path "macs3/peaks/*"
path "macs3/peaks/*"
path "macs3/annotation/*"
path "macs3/featurecounts/*"
path "deseq2/*"
path "deseq2/*"
output:
path "*multiqc_report.html", emit: report
path "*_data" , emit: data
path "*_plots" , optional: true, emit: plots
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
def custom_config = params.multiqc_config ? "--config ${mqc_custom_config}" : ''
"""
multiqc \\
-f \\
${args} \\
${custom_config} \\
.
cat <<-END_VERSIONS > versions.yml
"${task.process}":
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
END_VERSIONS
"""
}