-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
91 lines (83 loc) · 2.28 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
manifest {
homePage = 'https://github.com/csiro-crop-informatics/biokanga_align_paper'
description = 'Pipeline for executing experiments underpinnig biokanga publication'
defaultBranch = 'master'
}
// Global default params, used in configs
params {
version = '0.3' //Pipeline version
outdir = "./results"
publishmode = "symlink"
//NUMBER OF INPUT LINES TO BE PROOCESSED FOR TRIAL PURPOSES, DEFAULT null WILL PROCESS WHOLE DATASETS
trialLines = null
}
//Default inputs
includeConfig 'conf/input.config'
//Output publishing conf
includeConfig 'conf/publish.config'
profiles {
standard {
process.executor = 'local'
includeConfig 'conf/requirements.config'
}
modules {
includeConfig 'conf/modules.config'
}
docker {
includeConfig 'conf/containers.config'
docker {
enabled = true
fixOwnership = true
}
}
slurm {
includeConfig 'conf/requirements.config'
process.executor = 'slurm'
}
singularity {
includeConfig 'conf/containers.config'
singularity {
enabled = true
autoMounts = true
cacheDir = "${HOME}/singularity-images"
}
}
singularitymodule {
process.module = 'singularity/2.4.0'
}
}
// process {
// errorStrategy = 'terminate' //'ignore'
// }
//GENERATE REPORT https://www.nextflow.io/docs/latest/tracing.html#trace-report
report {
enabled = true
file = "${params.outdir}/flowinfo/report.html"
}
//GENERATE TIMELINE https://www.nextflow.io/docs/latest/tracing.html#timeline-report
timeline {
enabled = true
timeline.file = "${params.outdir}/flowinfo/timeline.html"
}
//GENERATE PIPELINE TRACE https://www.nextflow.io/docs/latest/tracing.html#trace-report
trace {
enabled = true
file = "${params.outdir}/flowinfo/trace.txt"
}
//FROM: https://github.com/SciLifeLab/NGI-smRNAseq/blob/29c41afd45011874ed9920c5065ddff93791e3cf/nextflow.config
// Function to ensure that resource requirements don't go beyond a maximum limit
def check_max(obj, type) {
if(type == 'memory'){
if(obj.compareTo(params.max_memory) == 1)
return params.max_memory
else
return obj
} else if(type == 'time'){
if(obj.compareTo(params.max_time) == 1)
return params.max_time
else
return obj
} else if(type == 'cpus'){
return Math.min( obj, params.max_cpus )
}
}