-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
79 lines (71 loc) · 2.61 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
manifest {
author = "Tiago F. Jesus"
description = "This is a nextflow pipeline to generate the pATLAS database."
}
params {
help = false
db_name = "plasmid_db_dev"
ncbi_ftp = "ftp://ftp.ncbi.nlm.nih.gov/refseq/release/plasmid/plasmid.*.1.genomic.fna.gz"
// if you want to run default plasmidfinder database use "plasmidfinder" instead of "plasmidfinder_db" which is the latest version
abricateDatabases = ["resfinder", "card", "vfdb", "virulencefinder"]
diamondDatabases = ["bacmet"]
abricateId = "90"
abricateCov = "80"
cardCsv = "/data/aro_index.csv" //file inside docker image
sequencesRemove = false
}
process {
// containers
$downloadFastas.container = "tiagofilipe12/patlas-db-creation:1.6.1"
$runMASHix.container = "tiagofilipe12/patlas-db-creation:1.6.1"
$abricate2db.container = "tiagofilipe12/patlas-db-creation:1.6.1"
$bowtieIndex.container = "flowcraft/mapping-patlas:1.4.1-1"
$samtoolsIndex.container = "flowcraft/mapping-patlas:1.4.1-1"
$abricate.container = "flowcraft/abricate:0.8.0-3"
$abricate_plasmidfinder_db.container = "flowcraft/abricate:0.8.0-3"
$diamond.container = "tiagofilipe12/patlas-db-creation:1.6.1"
// resources
$downloadFastas.cpus = 1
$downloadFastas.memory = "4GB"
$runMASHix.cpus = 2
$runMASHix.memory = { 4.GB * task.attempt }
$samtoolsIndex.cpus = 2
$samtoolsIndex.memory = { 4.GB * task.attempt }
$abricate2db.cpus = 1
$abricate2db.memory = { 1.GB * task.attempt }
$bowtieIndex.cpus = 2
$bowtieIndex.memory = { 4.GB * task.attempt }
$abricate.cpus = 1
$abricate.memory = { 4.GB * task.attempt }
$abricate_plasmidfinder_db.cpus = 1
$abricate_plasmidfinder_db.memory = { 4.GB * task.attempt }
$diamond.cpus = 1
$diamond.memory = { 4.GB * task.attempt }
}
// in fact for abricate a container from flowcraft may be used: flowcraft/abricate:0.8.0-1
profiles {
// standard uses executor local and docker
standard {
docker.enabled = true
}
singularity {
cacheDir = "$HOME/.singularity_cache"
singularity.enabled = true
}
slurm_shifter {
process.executor = "slurm"
process.errorStrategy = "retry"
process.maxRetries = 3
shifter.enabled = true
}
lobo {
process.executor = "slurm"
process.errorStrategy = "retry"
// option exclusive for imm-lobo cluster
process.clusterOptions = "--exclude=compute-1"
process.maxRetries = 3
shifter.enabled = true
}
}
// uncomment the line below if you have a user.config file
//includeConfig "user.config"