-
Notifications
You must be signed in to change notification settings - Fork 4
/
nextflow.config
92 lines (79 loc) · 2.23 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
/**
* Copyright (c) 2022 DKFZ.
*
* Distributed under the MIT License (license terms are at https://github.com/DKFZ-ODCF/nf-bam2fastq/blob/master/LICENSE.txt).
*
* Author: Philip R. Kensche
*
* Configuration for the DKFZ-ODCF/nf-bam2fastq Nextflow workflow.
*/
manifest {
homePage = 'https://github.com/DKFZ-ODCF/nf-bam2fastq'
description = 'BAM-to-FASTQ conversion and FASTQ-sorting workflow'
mainScript = 'main.nf'
version = '1.2.0'
author = 'Philip Reiner Kensche'
nextflowVersion = '>= 22.07.1'
}
// The workflow may refer to an older container version, e.g. if the container was not updated.
ext.containerVersion = '1.0.0'
profiles {
test {
process {
cpus = 1
memory = 1.GB
}
}
local {
process {
executor = 'local'
}
}
conda {
conda.enabled = true
conda.cacheDir = "${projectDir}/cache/conda"
process {
conda = "${projectDir}/task-environment.yml"
}
}
mamba {
conda.enabled = true
useMamba = true
conda.cacheDir = "${projectDir}/cache/conda"
process {
conda = "${projectDir}/task-environment.yml"
}
}
docker {
docker.enabled = true
docker.runOptions='-u $(id -u):$(id -g)'
process {
container = "ghcr.io/dkfz-odcf/nf-bam2fastq:${ext.containerVersion}"
}
}
singularity {
process.container = "nf-bam2fastq_${ext.containerVersion}.sif"
singularity.enabled = true
singularity.cacheDir = "${projectDir}/cache/singularity"
// The singularity containers are stored in the workflow-directory
singularity.autoMounts = true
}
lsf {
process {
executor = 'lsf'
clusterOptions = '-env none'
}
executor {
// scratch = '$SCRATCHDIR/$LSB_JOBID'
perTaskReserve = false
perJobMemLimit = true
}
}
}
/** Use the following to configure e.g. submission limits, job-names, etc. for the executor. See
*
* https://www.nextflow.io/docs/latest/config.html?highlight=jobname#scope-executor
*/
executor {
jobName = { "nf-bam2fastq - $task.name - $task.hash" }
}