-
Notifications
You must be signed in to change notification settings - Fork 88
/
nextflow.config
101 lines (85 loc) · 2.19 KB
/
nextflow.config
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Global default params, used in configs
params {
// Workflow flags
outdir = './results'
// Boilerplate options
help = false
tracedir = "${params.outdir}/pipeline_info"
// cache option makes it a bit easier to set conda or singularity cacheDir
cache = ''
}
// Load base.config by default for all pipelines
includeConfig 'conf/base.config'
if ( params.medaka || params.nanopolish ){
includeConfig 'conf/nanopore.config'
}
if ( params.illumina ){
includeConfig 'conf/illumina.config'
}
profiles {
conda {
if ( params.medaka || params.nanopolish ) {
process.conda = "$baseDir/environments/nanopore/environment.yml"
} else if (params.illumina) {
process.conda = "$baseDir/environments/illumina/environment.yml"
}
if (params.cache){
conda.cacheDir = params.cache
}
includeConfig 'conf/conda.config'
}
docker {
docker.enabled = true
fixOwnership = true
runOptions = "-u \$(id -u):\$(id -g)"
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
if ( params.medaka || params.nanopolish ){
process.container = "file:///${baseDir}/artic-ncov2019-nanopore.sif"
} else if (params.illumina) {
process.container = "file:///${baseDir}/artic-ncov2019-illumina.sif"
}
if (params.cache){
singularity.cacheDir = params.cache
}
}
slurm {
process.executor = 'slurm'
}
lsf {
process.executor = 'lsf'
}
gls {
process.executor = 'google-lifesciences'
includeConfig 'conf/gls.config'
}
}
// COG-UK institutional config
includeConfig 'conf/coguk.config'
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
timeline {
enabled = false
file = "${params.tracedir}/execution_timeline.html"
}
report {
enabled = false
file = "${params.tracedir}/execution_report.html"
}
trace {
enabled = false
file = "${params.tracedir}/execution_trace.txt"
}
dag {
enabled = false
file = "${params.tracedir}/pipeline_dag.svg"
}
manifest {
author = 'Matt Bull'
description = 'Nextflow for running the Artic ncov2019 pipeline'
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
version = '0.1.0'
}