-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
138 lines (124 loc) · 3.7 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VirusWarn-Flu Nextflow config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default config options for all compute environments
----------------------------------------------------------------------------------------
*/
manifest {
name = 'VirusWarn-Flu'
author = """Christina Kirschbaum, Sofia Paraskevopoulou, Hugues Richard"""
homePage = 'https://github.com/rki-mf1/VirusWarn-Flu'
description = """ A mutation-basted alert system to prioritize concerning Influenza variants from sequencing data """
mainScript = 'main.nf'
nextflowVersion = '!>=22.10.1'
version = '1.0dev'
doi = ''
}
// Global default params, used in configs
params {
cores = 4
max_cores = 12
memory = '12'
help = false
// Specify your pipeline's command line flags
// Input options
fasta = ''
ref = ''
metadata = ''
subtype = 'h1n1'
split = ''
qc = true
// strict has to be a string
// Otherwise there are problems when the param is given to the Rmd (false/FALSE)
strict = 'n'
season = '23/24'
// output folder structure
output = 'results'
split_dir = '00_splitting'
nextclade_dir = '01_nextclade'
annot_dir = '02_annotation'
report_dir = '03_report'
qc_dir = '04_qc'
runinfo_dir = 'X.Pipeline-Runinfo'
// softlink results instead of copying
publish_dir_mode = 'copy' // use 'symlink' to just link the results
// location for engines' cache
conda_cache_dir = 'conda'
singularity_cache_dir = 'singularity'
cloudProcess = false
}
profiles {
// executors
local {
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}
params.cloudProcess = false
includeConfig 'config/local.config'
}
slurm {
executor {
name = "slurm"
queueSize = 100
// exitReadTimeout = "360 sec"
// submitRateLimit = '1 / 2 s'
// pollInterval = '30 sec'
}
process.cache = "lenient"
includeConfig 'config/nodes.config'
}
// engines
conda {
conda {
enabled = true
cacheDir = params.conda_cache_dir
}
includeConfig 'config/conda.config'
}
mamba {
conda {
enabled = true
useMamba = true
cacheDir = params.conda_cache_dir
}
includeConfig 'config/conda.config'
}
docker {
docker { enabled = true }
includeConfig 'config/container.config'
}
singularity {
singularity {
enabled = true
autoMounts = true
cacheDir = params.singularity_cache_dir
envWhitelist = "HTTPS_PROXY,HTTP_PROXY,http_proxy,https_proxy,FTP_PROXY,ftp_proxy"
}
includeConfig 'config/container.config'
}
// no config for stub runs
stub {
executor {
name = "local"
cpus = params.max_cores
}
}
}
// runinfo
def trace_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss')
timeline {
enabled = true
file = "${params.output}/${params.runinfo_dir}/execution_timeline_${trace_timestamp}.html"
}
report {
enabled = true
file = "${params.output}/${params.runinfo_dir}/execution_report_${trace_timestamp}.html"
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
THE END
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/