-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
45 lines (40 loc) · 982 Bytes
/
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
manifest {
author = 'Dan Fornika'
name = 'BCCDC-PHL/process-nanopore'
version = '0.1.0'
description = 'A Nextflow pipeline for initial processing of Nanopore sequencing data'
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
}
params {
profile = false
cache = ''
run_dir = 'NO_FILE'
samplesheet = 'NO_FILE'
outdir = 'results'
pipeline_short_name = parsePipelineName(manifest.toMap().get('name'))
pipeline_minor_version = parseMinorVersion(manifest.toMap().get('version'))
}
def parseMinorVersion(version) {
minor_version = version.split('\\.')[0..1].join('.')
return minor_version
}
def parsePipelineName(name) {
short_name = name.split('/')[1]
return short_name
}
profiles {
conda {
conda.enabled = true
process.conda = "$baseDir/environments/environment.yml"
if (params.cache){
conda.cacheDir = params.cache
}
}
}
process {
withName: dorado_trim {
cpus = 8
memory = '2 GB'
}
}