-
Notifications
You must be signed in to change notification settings - Fork 8
/
nextflow.config
185 lines (159 loc) · 5.3 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
manifest {
name = 'Earth Biogenome Project Assembly and Annotation workflow'
author = 'Mahesh Binzer-Panchal'
homePage = 'https://github.com/NBISweden/Earth-Biogenome-Project-pilot'
description = 'A pilot workflow for performing de novo genome assembly and annotation for the Earth Biogenome Project.'
mainScript = 'main.nf'
// '!>=21.04.0' : Run with version 21.04.0 or higher, otherwise exit.
nextflowVersion = '!>=21.04.0'
version = '0.1'
}
// Default Workflow parameters
// Override by supplying a params.yml file to the -params-file option in Nextflow.
params {
// Workflow inputs
input = null
reference = null
steps = 'inspect,preprocess,assemble,purge,polish,screen,scaffold,curate'
organelle_assembly_mode = 'contigs'
// Workflow outputs
outdir = 'results'
// Mode of copying results from the work directory
// 'symlink' : Use for test data.
// 'copy' : Use for full analysis data.
publish_mode = 'copy' // values: 'symlink', 'copy'
use_phased = false
// Cache folder to store database outputs
cache = 'database_cache'
// Tool specific
// FASTK
fastk.kmer_size = 31
// MERYL
meryl.kmer_size = 31
// GENESCOPEFK
genescopefk.kmer_size = 31
// HIFIASM
hifiasm = null // Expects a Map of options [ opts01: "--opt1 --opt2 val", opts02: "--opt2 val --opt3" ]
// BUSCO
busco.lineages = null // A comma separated set of lineages or 'auto' (default: Retrieve from GOAT.)
busco.lineages_db_path = null
// DIAMOND
diamond.db = null
// BLAST
blast.db = null
// NCBI
ncbi.taxdb = 'ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz'
// MASH
mash.screen_db = 'https://gembox.cbcb.umd.edu/mash/refseq.genomes%2Bplasmid.k21s1000.msh'
// MITOHIFI
mitohifi.code = 1 // Standard genetic code
// FCS
fcs.database = null
fcs.manifest = "https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/database/latest/all.manifest"
fcs.ramdisk_path = '/dev/shm/gxdb'
// General module configuration
multiqc.config = "$baseDir/configs/multiqc_conf.yaml"
}
// Set container registry information
apptainer.registry = 'quay.io'
docker.registry = 'quay.io'
podman.registry = 'quay.io'
singularity.registry = 'quay.io'
includeConfig 'configs/nf-core-defaults.config'
profiles {
conda {
conda.enabled = true
}
mamba {
conda.enabled = true
conda.useMamba = true
}
micromamba {
conda.enabled = true
conda.useMicromamba = true
}
docker {
docker.enabled = true
docker.userEmulation = true
}
arm {
docker.runOptions = '-u $(id -u):$(id -g) --platform=linux/amd64'
}
singularity {
singularity.enabled = true
}
gitpod {
executor {
name = 'local'
cpus = 8
memory = 30.GB
}
}
// Test profiles
test {
params {
input = "$projectDir/assets/test_hsapiens.yml"
busco_lineages = 'eukaryota'
}
}
testdata_full {
params {
input = "$projectDir/assets/test_dataset_full.yml"
busco_lineages = 'eukaryota'
}
}
// Profiles for the Uppmax clusters
uppmax {
includeConfig 'configs/uppmax.config'
}
// A profile for running locally with Singularity
// (e.g., using an interactive Uppmax session)
uppmax_local {
process {
executor = 'local'
scratch = '$SNIC_TMP'
}
singularity {
enabled = true
envWhitelist = 'SNIC_TMP'
}
}
uppmax_databases {
params {
busco_lineage_path = '/sw/bioinfo/BUSCO/v5_lineage_sets'
diamond_db = '/proj/snic2021-5-291/nobackup/databases/diamond_uniprot'
blast_db = [
'/proj/snic2021-5-291/nobackup/databases/blast_refseq_euk',
'/proj/snic2021-5-291/nobackup/databases/blast_refseq_prok',
'/proj/snic2021-5-291/nobackup/databases/blast_refseq_virus',
]
ncbi_taxonomy = '/sw/data/ncbi_taxonomy/latest/'
}
}
dardel {
includeConfig 'configs/dardel.config'
}
nac {
includeConfig 'configs/nac.config'
}
}
includeConfig 'configs/modules.config'
// Enable tracing by default
// Add time stamp following nf-core: https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/nextflow.config
def trace_timestamp = new java.util.Date().format('yyyy-MM-dd_HH-mm-ss')
timeline {
enabled = true
file = "${params.outdir}/pipeline_info/execution_timeline_${trace_timestamp}.html"
}
report {
enabled = true
file = "${params.outdir}/pipeline_info/execution_report_${trace_timestamp}.html"
}
trace {
enabled = true
file = "${params.outdir}/pipeline_info/execution_trace_${trace_timestamp}.txt"
}
dag {
enabled = true
file = "${params.outdir}/pipeline_info/pipeline_dag_${trace_timestamp}.mmd"
}