-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
111 lines (99 loc) · 3.85 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
k8s {
namespace = 'medgen-ns'
runAsUser = 1000
storageClaimName = 'pvc-medgen-plevova'
homeDir = "/mnt/01.NanoBreak/src"
launchDir = "${k8s.homeDir}/launch"
projectDir = "${k8s.homeDir}/project"
workDir = "${k8s.homeDir}/temp"
useJobs = true
pullPolicy = 'IfNotPresent'
storageMountPath = '/mnt'
computeResourceType = 'Job'
}
params {
outDir = '/mnt/01.NanoBreak/data/samples'
projectDirectory = "${k8s.projectDir}/xsvato01/nanopore_k8s/"
//scripts
ComputeDistance = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/ComputeDistance.py"
TagUniqes = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/TagUnique.py"
Circos = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/circos.R"
CnvPlotTobias = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/rd.R"
FilterSingletons = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/filterSingletons.py"
ParseSurvivor = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/ParseSurvivor.py"
SurvivorPutSuppToSamples = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/SurvivorPutSuppToSamples.py"
ExploadBNDs = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/exploadBNDs.py"
FilterSingletonsSurvivor = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/filterSingletonsSurvivor.py"
Edit1kONT = "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/Edit1kONT.py"
ref_specific = [
[
refname:'GrCh38',
ref:'/mnt/shared_resources/homo_sapiens/GRCh38/seq/GRCh38.fa',
vep:'/mnt/shared_resources/homo_sapiens/GRCh38/annot/r110/vep' ,
refFlat: "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/GrCh38.refFlat.noChr.txt",
refLengths : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/GrCh38.lens.txt",
cytoMap : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/GrCh38.cytoMap.bed",
CNVdb : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/GrCh38.cnvDB.bed",
nonMappableRepeats: "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/GrCh38.nonMappable.repeatsTrf.bed",
nonMappableRepeatsTobias: "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/dna.primary_assembly.fa.r101.s501.NoCHR.blacklist.gz",
alfredAnnotateBed: "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh38/Homo_sapiens.GRCh38.107.gtf.gz"
],
[
refname: 'GrCh37',
ref:'/mnt/shared_resources/homo_sapiens/GRCh37/seq/GRCh37.fa',
vep : 'NENI',
refFlat : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh37/GrCh37.refFlat.noChr.txt",
refLengths : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh37/GrCh37.lens.txt",
cytoMap : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh37/GrCh37.cytoMap.bed",
CNVdb : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh37/GrCh37.cnvDB.bed",
nonMappableRepeats : "${k8s.projectDir}/xsvato01/nanopore_k8s/bin/GrCh37/GrCh37.nonMappable.repeatsTrf.bed"
]
]
}
executor {
queueSize = 100
}
process {
shell = ['/bin/bash', '-euo', 'pipefail']
container = 'registry.gitlab.ics.muni.cz:443/450402/nanopore_k8s:65'
scratch = true
executor = 'k8s'
pod = [[securityContext:[fsGroupChangePolicy:'OnRootMismatch', runAsUser:1000, runAsGroup:1, fsGroup:1]], [nodeSelector:'storage=local-ssd']]
// errorStrategy = { task.exitStatus in [143,137,104,134,139,247, null, ''] ? 'retry' : 'finish' }
errorStrategy = { task.exitStatus in [1] ? 'finish' : 'retry' }
cpus = 1
memory = '1GB'
withLabel: s_mem {
memory = {1.GB * task.attempt * (3/4)}
}
withLabel: m_mem {
memory = {4.GB * task.attempt * (3/4)}
}
withLabel: l_mem {
memory = {12.GB * task.attempt * (3/4)}
}
withLabel: xl_mem {
memory = {24.GB * task.attempt * (3/4)}
}
withLabel: xxl_mem {
memory = {48.GB * task.attempt * (3/4)}
}
withLabel: xxxl_mem {
memory = {120.GB * task.attempt * (3/4)}
}
withLabel: s_cpu {
cpus = 1
}
withLabel: m_cpu {
cpus = 4
}
withLabel: l_cpu {
cpus = 8
}
withLabel: xl_cpu {
cpus = 16
}
}
manifest {
defaultBranch = 'main'
}