-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
73 lines (63 loc) · 1.68 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
manifest {
name = 'crukci-bioinformatics/mga2'
author = 'Matt Eldridge'
homePage = 'https://github.com/crukci-bioinformatics/mga2'
description = 'Multi-Genome Alignment (MGA) contaminant screen for genomic sequencing data'
mainScript = 'mga2.nf'
nextflowVersion = '>=20.10.0'
version = '2.1.0-snapshot'
}
params {
showSettings = true
help = false
sampleSheet = "samplesheet.csv"
fastqDir = ""
sampleSize = 100000
maxNumberToSampleFrom = Long.MAX_VALUE
chunkSize = 1000000
trimStart = 1
trimLength = 36
genomeDetails = "${projectDir}/resources/genomes.csv"
bowtieIndexDir = "bowtie_indexes"
adaptersFasta = "${projectDir}/resources/adapters.fa"
outputDir = "${launchDir}"
outputPrefix = "mga_"
}
process {
container = 'crukcibioinformatics/mga2:latest'
errorStrategy = {
task.exitStatus in [ 104, 134, 137..140 ].flatten() ? 'retry' : 'finish'
}
cpus = 1
memory = 1.GB
time = 1.hour
}
singularity {
autoMounts = true
runOptions = "--no-home"
}
profiles {
standard {
process.executor = 'local'
executor {
cpus = 4
memory = 16.GB
}
}
bigserver {
process.executor = 'local'
executor {
cpus = 30
memory = 128.GB
}
}
cluster {
process.executor = 'slurm'
executor {
queueSize = 50
pollInterval = 30.sec
jobName = { "'$task.name'" }
}
singularity.enabled = true
}
}