-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
154 lines (132 loc) · 4.73 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
// Nextflow configuration
nextflow.enable.moduleBinaries = true // Enables the use of modules with binary scripts
nextflow.preview.output = true // Enables publish/output section for workflows
outputDir = "./results"
// Global default params
params {
// input output parameters
hog_orthoxml = null
matrix_file = null
pairwise_orthologs_folder = null
// OMA genomes directory
genomes_dir = null
// domains directory
known_domains = null
cath_names_path = "http://download.cathdb.info/cath/releases/latest-release/cath-classification-data/cath-names.txt"
pfam_names_path = "https://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.clans.tsv.gz"
// xref paths
xref_uniprot_swissprot = "https://ftp.ebi.ac.uk/pub/databases/uniprot/knowledgebase/uniprot_sprot.dat.gz"
xref_uniprot_trembl = "/dev/null"
xref_refseq = null //null -> download from refseq; folder -> files with gpff.gz to process
// gene ontology
go_obo = "http://purl.obolibrary.org/obo/go/go-basic.obo"
go_gaf = "https://ftp.ebi.ac.uk/pub/databases/GO/goa/UNIPROT/goa_uniprot_all.gaf.gz"
// OMA Browser data directory
oma_browser_data_dir = "test/bla"
nr_medium_procs = 10
// Help message
help = false
}
// Hardcoded environmental variables
env {
PYTHONNOUSERSITE = 1
}
// Load base.config by default for all pipelines
includeConfig "config/base.config"
profiles {
debug {
dumpHashes = true
process.beforeScript = 'echo $HOSTNAME'
cleanup = false
nextflow.enable.configProcessNamesValidation = true
}
docker {
docker.enabled = true
conda.enabled = false
singularity.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = false
docker.runOptions = '-u $(id -u):$(id -g)'
}
arm {
docker.runOptions = '-u $(id -u):$(id -g) --platform=linux/amd64'
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
conda.enabled = false
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = false
}
apptainer {
singularity.enabled = false
singularity.autoMounts = false
conda.enabled = false
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = true
apptainer.autoMounts = true
}
test { includeConfig 'config/test.config' }
test_full { includeConfig 'config/test_full.config' }
sib_hpc {
includeConfig "config/sib_hpc.config"
}
euler_hpc {
includeConfig "config/euler_hpc.config"
}
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
// Meta-data of the pipeline
manifest {
author = "Adrian Altenhoff"
defaultBranch = "main"
description = "Convert OMA run into OMA Browser release"
mainScript = "main.nf"
name = "oma-browser-build"
nextflowVersion = ">=24.10.0"
version = "0.1.0"
}
// plugins
plugins {
id "[email protected]"
}
// Set schema validation options
validation {
validate_params = true
lenientMode = false
failUnrecognisedParams = false //Once all params are put into the schema you can put this back to true
monochromeLogs = false
monochrome_logs = false
skip_duplicate_check = false
showHiddenParams = false
defaultIgnoreParams = ["validate_params", "lenientMode", "failUnrecognisedParams", "monochromeLogs", "monochrome_logs", "skip_duplicate_check", "showHiddenParams" ,"defaultIgnoreParams"]
// ignoreParams = ""
}
def trace_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss')
// Creates logs for what, when, where, and how the workflow was run
// TODO: add the check for if its a stub or not
trace {
enabled = !params.help ? true : false
file = "$outputDir/reports/nextflow/trace_${trace_timestamp}.txt"
fields = "task_id,native_id,hash,name,status,submit,complete,script"
overwrite = true
}
report {
enabled = !params.help ? true : false
file = "$outputDir/reports/nextflow/exec_report_${trace_timestamp}.html"
overwrite = true
}
timeline {
enabled = !params.help ? true : false
file = "$outputDir/reports/nextflow/timeline_${trace_timestamp}.html"
overwrite = true
}