Skip to content

Commit

Permalink
configs
Browse files Browse the repository at this point in the history
  • Loading branch information
AggressiveHayBale committed Oct 4, 2022
1 parent 656d9ac commit 56c0d05
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configs/container.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
process {
withLabel: ubuntu { container = 'nanozoo/template:3.8--e13dfeb' }
withLabel: bakta { container = 'nanozoo/bakta:1.2.1--bf38720' }
withLabel: prokka { container = 'nanozoo/prokka:1.14.6--c99ff65'}
withLabel: eggnog { container = 'nanozoo/eggnog-mapper:2.1.9--4f2b6c0' }
}
8 changes: 8 additions & 0 deletions configs/local.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
process.executor = 'local'

process {
withLabel: ubuntu { cpus = 1 }
withLabel: prokka { cpus = params.cores }
withLabel: bakta { cpus = params.cores }
withLabel: eggnog { cpus = params.cores }
}
6 changes: 6 additions & 0 deletions configs/nodes.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
process {
withLabel: ubuntu { cpus = 2; memory = '2 GB' }
withLabel: bakta { cpus = 8; memory = '16 GB' }
withLabel: prokka { cpus = 8; memory = '16 GB' }
withLabel: eggnog { cpus = 8; memory = '16 GB' }
}
88 changes: 88 additions & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
manifest {
mainScript = 'main.nf'
name = 'anno_bench'
}

// default parameters
params {
cores = Runtime.runtime.availableProcessors().intdiv(4)
help = false
max_cores = Runtime.runtime.availableProcessors()
memory = '12'
profile = false

// inputs
fasta = ''

// settings


// folder structure
output = "results"
runinfodir = "Runinfo"


}


// runinfo
timeline {
enabled = true
file = "${params.output}/${params.runinfodir}/execution_timeline.html"
}

report {
enabled = true
file = "${params.output}/${params.runinfodir}/execution_report.html"
}


profiles {
local {
workDir = "work/nextflow-anno_bench-$USER"
includeConfig 'configs/local.config'
executor {
name = "local"
cpus = params.max_cores
memory = params.memory
}

process.errorStrategy = { task.exitStatus in [10,14,143,137,104,134,139] ? 'retry' : 'terminate' }
}


docker {
docker { enabled = true }
includeConfig 'configs/container.config'
}

stub {
params.max_cores = 2
params.cores = 2
}


ukj_cloud {
workDir = "/tmp/nextflow-anno_bench-$USER"
docker { enabled = true }
process.executor = 'google-lifesciences'
params.databases = 'gs://persistant-storage/poreCov/'
bucketDir = 'gs://case-tmp-dir/anno_bench/'
google {
project = 'case-dev-302214'
zone = 'europe-west1-b,europe-west1-c,europe-west2-b,europe-west2-a'
lifeSciences.preemptible = true
lifeSciences.bootDiskSize = 20.GB
}
includeConfig 'configs/container.config'
includeConfig 'configs/nodes.config'

// cloud error strategy
process.errorStrategy = { task.exitStatus in [10,14,143,137,104,134,139] ? 'retry' : 'ignore' }
process.maxRetries = 3
}

// test_profile
// test {
// }
}

0 comments on commit 56c0d05

Please sign in to comment.