-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
103 lines (92 loc) · 3.01 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
// ========================
// HiTMaP Nextflow Workflow
// ========================
manifest {
author = 'Michael Geaghan'
name = 'HiTMaP_workflow'
description = 'A Nextflow workflow for running HiTMaP.'
homePage = 'https://github.com/Garvan-Data-Science-Platform/HiTMaP_workflow'
}
// Mandate a minimum version of nextflow required to run the pipeline
nextflowVersion = '!>=20.07.1'
// Default workflow parameters
params {
help = false
mode = 'full'
config = false
datafile = false
ibdfile = false
fasta = false
rotationfile = false
rankfile = false
candidates = false
imsdata = false
threads = 1
hitmap_container = false
outdir = 'results'
dryrun = false
whoami = 'whoami'.execute().text.trim()
memory = 16
disk = 100
time = [
candidates: '1h',
ims: '1h',
plot: '1h'
]
datetime = new Date().format('yyyy-MM-dd_HH-mm-ss')
}
// Fail a task if any command returns non-zero exit code
shell = ['/bin/bash', '-euo', 'pipefail']
// Enable profiles for different compute infrastructures or set up
profiles {
gadi { includeConfig "config/gadi.config" }
dice { includeConfig "config/dice.config" }
docker { includeConfig "config/docker.config" }
// standard { includeConfig "config/standard.config" }
// gcp { includeConfig "config/gcp.config" }
// test { includeConfig "config/test.config" }
}
// Set default resources for each process
// See https://www.nextflow.io/docs/latest/config.html?highlight=withname#scope-process
process {
// Set default resources for all processes
cpus = params.threads.toInteger()
memory = params.memory.toInteger().Gb
disk = params.disk.toInteger().Gb
cache = 'lenient'
errorStrategy = 'finish'
// Set process specific resources
// See https://www.nextflow.io/docs/latest/config.html?highlight=withname#scope-process
// DEMO CODE: DELETE FOR YOUR OWN WORKFLOWS
// withName: 'check_input' {
// executor = 'local'
// }
}
// Produce a workflow diagram
// See https://www.nextflow.io/docs/latest/tracing.html#dag-visualisation
dag {
enabled = true
overwrite = true
file = "${params.outdir}/runInfo/dag.svg"
}
// Output resource and runtime reports for a workflow run
// See https://www.nextflow.io/docs/latest/tracing.html
report {
enabled = true
overwrite = true
file = "${params.outdir}/runInfo/report.html"
}
// Output an html timeline report
// See https://www.nextflow.io/docs/latest/tracing.html#timeline-report
timeline {
enabled = true
overwrite = true
file = "${params.outdir}/runInfo/timeline.html"
}
// Output process execution trace file
// See https://www.nextflow.io/docs/latest/tracing.html#trace-report
trace {
enabled = true
overwrite = true
file = "${params.outdir}/runInfo/trace.txt"
}