-
Notifications
You must be signed in to change notification settings - Fork 11
/
nextflow.config
113 lines (93 loc) · 3.31 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
/*
fmalmeida/mpgap pipeline configuration file
Maintained by Felipe Marques de Almeida
Contact: [email protected]
*/
// loading required / default pipeline parameters
includeConfig 'conf/defaults.config'
// Load base.config (contains some label resources configuration)
includeConfig 'conf/base.config'
// fix type of variable expected
params.hybrid_strategy = params.hybrid_strategy.toString()
// not save version by default
process {
publishDir = [
path: params.output,
saveAs: { filename -> filename.contains('versions.yml') ? null : filename }
]
// custom configuration for CUSTOM_DUMPSOFTWAREVERSIONS
withName: CUSTOM_DUMPSOFTWAREVERSIONS {
publishDir = [
enabled: false
]
}
}
// Nextflow management
params {
// Boilerplate options
help = false
get_config = false
get_samplesheet = false
validate_params = true
schema_ignore_params = 'selected_profile'
show_hidden_params = false
// Config options
custom_config_version = 'master'
custom_config_base = "https://raw.githubusercontent.com/nf-core/configs/${params.custom_config_version}"
config_profile_description = null
config_profile_contact = null
config_profile_url = null
config_profile_name = null
}
// Load nf-core custom profiles from different Institutions
try {
includeConfig "${params.custom_config_base}/nfcore_custom.config"
} catch (Exception e) {
System.err.println("WARNING: Could not load nf-core/config profiles: ${params.custom_config_base}/nfcore_custom.config")
}
/*
Configuring Nextflow Scopes.
Enable or not the production of Nextflow Reports
*/
def trace_timestamp = new java.util.Date().format('yyyy-MM-dd_HH-mm-ss')
// Trace Report
trace {
enabled = true // Enable? true or false
file = "${params.tracedir}" + "/mpgap_tracing_${trace_timestamp}.txt"
fields = 'task_id,name,status,exit,realtime,cpus,%cpu,memory,%mem,rss'
}
// Timeline Report
timeline {
enabled = true // Enable? true or false
file = "${params.tracedir}" + "/mpgap_timeline_${trace_timestamp}.html"
}
// Complete Report
report {
enabled = true // Enable? true or false
file = "${params.tracedir}" + "/mpgap_report_${trace_timestamp}.html"
}
/*
Setting up NF profiles
To use different profiles and executors
please read more at: https://www.nextflow.io/docs/latest/config.html#config-profiles
*/
profiles {
// load profiles
standard { includeConfig 'conf/standard.config' }
conda { includeConfig 'conf/conda.config' }
docker { includeConfig 'conf/docker.config' }
singularity { includeConfig 'conf/singularity.config' }
test { includeConfig 'conf/test.config' }
}
/*
Adding manifest
*/
manifest {
name = "fmalmeida/mpgap"
author = "Felipe Marques de Almeida"
description = "Nextflow pipeline for de novo genome assembly"
homePage = "https://github.com/fmalmeida/mpgap"
mainScript = "main.nf"
nextflowVersion = "!>=21.10.3"
version = "3.2.2"
}