forked from CDCgov/tostadas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
187 lines (157 loc) · 4.88 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GENERAL INFORMATION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
manifest {
name = 'mpxv_nextflow'
author = 'AG'
description = 'nextflow wrapper for running the MPXV pipeline'
mainScript = 'main.nf'
nextflowVersion = '>=20.07.1'
version = 'latest'
}
// Global default params, used in configs
params {
help = false
fasta_path = ""
ref_fasta_path = ""
meta_path = ""
ref_gff_path = ""
env_yml = ""
scicomp = false
run_submission = true
run_vadr = false
run_liftoff = true
cleanup = true
clear_nextflow_log = null
clear_work_dir = null
clear_conda_env = null
clear_nf_results = null
output_dir = ""
overwrite_output = null
val_output_dir = ""
val_date_format_flag = 's'
val_keep_pi = false
final_liftoff_output_dir = ""
lift_print_version_exit = null
lift_print_help_exit = null
lift_parallel_processes = 8
lift_delete_temp_files = null
lift_coverage_threshold = null
lift_child_feature_align_threshold = null
lift_unmapped_features_file_name = 'output.unmapped_features.txt'
lift_copy_threshold = null
lift_distance_scaling_factor = null
lift_flank = null
lift_overlap = null
lift_mismatch = null
lift_gap_open = null
lift_gap_extend = null
lift_infer_transcripts = null
lift_copies = null
lift_minimap_path = 'N/A'
lift_feature_database_name = 'N/A'
vadr_output_dir = ""
vadr_models_dir = "$projectDir/vadr_files/mpxv-models"
submission_output_dir = ""
submission_wait_time = ""
submission_only_meta = ""
submission_only_gff = ""
submission_only_fasta = ""
processed_samples = ""
submission_config = ""
req_col_config = ""
batch_name = ""
send_submission_email = false
submission_database = "submit"
submission_prod_or_test = "test"
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PROFILES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
profiles {
// parameter sets
standard {
try {
includeConfig "conf/standard_params.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load standard_params.config from ${projectDir}/conf/")
}
}
test {
try {
includeConfig "conf/test_params.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load test_params.config from ${projectDir}/conf/")
}
}
// run docker + specify settings
docker {
params.run_docker = true
params.run_conda = false
params.run_singularity = false
conda.enabled = false
docker.enabled = true
singularity.enabled = false
docker.runOptions = '-u \$(id -u):\$(id -g)'
process {
withLabel: main {
container = params.docker_container
}
withLabel: vadr {
container = params.docker_container_vadr
}
}
}
// run conda + specify settings
conda {
params.run_conda = true
params.run_docker = false
params.run_singularity = false
conda.enabled = true
if ( params.run_vadr == true ) {
docker.enabled = true
}
singularity.enabled = false
conda.useMamba = true
}
// run singularity + specify settings
singularity {
params.run_singularity = true
params.run_docker = false
params.run_conda = false
conda.enabled = false
if ( params.run_vadr == true ) {
docker.enabled = true
}
singularity.enabled = true
singularity.autoMounts = false
singularity.cacheDir = "$PWD"
if ( params.scicomp == true ) {
singularity.runOptions = "--bind $projectDir --bind /dev/shm"
if ( params.run_vadr == true ) {
System.err.println("WARNING: VADR currently requires docker to run and Scicomp does not support Docker")
}
} else {
singularity.runOptions = "--bind $projectDir --bind /run/shm"
}
process {
withLabel: main {
container = "$projectDir/app/singularity/containers/singularity_docker.sif"
}
}
}
}
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NEXTFLOW TOWER SETTINGS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
tower {
enabled = false
accessToken = '<your token>'
workspaceId = '<your workspace id>'
}