-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnextflow.config
141 lines (118 loc) · 3.44 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
// Workflow details
manifest {
author = 'Georgie Samaha, Sydney Informatics Hub, University of Sydney'
name = 'GermlineStructuralV-nf'
description = 'Multi-caller germline structural variant calling pipeline'
homePage = 'https://github.com/Sydney-Informatics-Hub/Germline-StructuralV-nf'
}
// Mandate a minimum version of nextflow required to run the pipeline
nextflowVersion = '!>=20.07.1'
// Set default parameters
params {
version = '1.0'
help = false
input = null
ref = false
intervals = false
outDir = './results'
survivorMaxDist = 1000
survivorConsensus = 1
survivorType = 1
survivorStrand = 1
survivorSize = 40
annotsvDir = false
genomeBuild = 'GRCh37'
annotsvMode = 'both'
extraMantaFlags = false
extraSmooveFlags = false
extraTidditCovFlags = false
extraTidditSvFlags = false
extraAnnotsvFlags = false
gadi_account = false
setonix_account = false
whoami = false
}
// Preset use of containers with Singularity
singularity {
enabled = true
autoMounts = true
}
// Job profiles
profiles {
local { includeConfig "config/local.config" }
nimbus { includeConfig "config/nimbus.config" }
gadi { includeConfig "config/gadi.config" }
setonix { includeConfig "config/setonix.config" }
}
// Fail a task if any command returns non-zero exit code
shell = ['/bin/bash', '-euo', 'pipefail']
// Resources for each process
// default run resource parameters
process {
withName: 'smoove' {
cpus = 4
memory = 40.GB
container = 'brentp/smoove:v0.2.7'
}
withName: 'rehead_smoove' {
container = 'quay.io/biocontainers/bcftools:1.15.1--hfe4b78e_1'
}
withName: 'manta' {
cpus = 10
memory = 40.GB
container = 'quay.io/biocontainers/mulled-v2-40295ae41112676b05b649e513fe7000675e9b84:0b4be2c719f99f44df34be7b447b287bb7f86e01-0'
}
withName: 'rehead_manta' {
container = 'quay.io/biocontainers/bcftools:1.15.1--hfe4b78e_1'
}
withName: 'tiddit_sv' {
cpus = 4
memory = 40.GB
container = 'quay.io/biocontainers/tiddit:3.6.0--py310hc2b7f4b_0'
}
withName: 'rehead_tiddit' {
container = 'quay.io/biocontainers/bcftools:1.15.1--hfe4b78e_1'
}
withName: 'tiddit_cov' {
cpus = 1
memory = 10.GB
container = 'quay.io/biocontainers/tiddit:3.6.0--py310hc2b7f4b_0'
}
withName: 'survivor_merge' {
cpus = 1
memory = 10.GB
container = 'quay.io/biocontainers/survivor:1.0.7--hd03093a_2'
}
withName: 'survivor_summary' {
cpus = 1
memory = 10.GB
container = 'quay.io/biocontainers/survivor:1.0.7--hd03093a_2'
}
withName: 'annotsv' {
cpus = 1
memory = 10.GB
container = 'sydneyinformaticshub/annotsv:3.2.1'
}
}
// Define timestamp, to avoid overwriting existing trace
def timestamp = new java.util.Date().format('yyyy-MM-dd_HH-mm-ss')
// Produce a workflow diagram
dag {
enabled = true
file = "${params.outDir}/runInfo/GermlineStructuralV_dag_${timestamp}.svg"
}
report {
enabled = true
file = "${params.outDir}/runInfo/GermlineStructuralV_report_${timestamp}.html"
}
timeline {
enabled = true
overwrite = true
file = "${params.outDir}/runInfo/GermlineStructuralV_timeline_${timestamp}.html"
}
trace {
enabled = true
overwrite = true
file = "${params.outDir}/runInfo/GermlineStructuralV_trace_${timestamp}.txt"
fields = 'process,name,status,queue,realtime,cpus,%cpu,memory,%mem,rss,env'
}