Add aws batch profile
This commit is contained in:
parent
36cd674fa2
commit
62afff20c4
3
main.nf
3
main.nf
@ -60,7 +60,7 @@ process makeReport {
|
|||||||
// decoupling the publish from the process steps.
|
// decoupling the publish from the process steps.
|
||||||
process output {
|
process output {
|
||||||
// publish inputs to output directory
|
// publish inputs to output directory
|
||||||
|
label "pysam"
|
||||||
publishDir "${params.out_dir}", mode: 'copy', pattern: "*"
|
publishDir "${params.out_dir}", mode: 'copy', pattern: "*"
|
||||||
input:
|
input:
|
||||||
file fname
|
file fname
|
||||||
@ -98,7 +98,6 @@ workflow {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
reads = file("$params.fastq/*.fastq*", type: 'file', maxdepth: 1)
|
reads = file("$params.fastq/*.fastq*", type: 'file', maxdepth: 1)
|
||||||
if (reads) {
|
if (reads) {
|
||||||
reads = Channel.fromPath(params.fastq, type: 'dir', checkIfExists: true)
|
reads = Channel.fromPath(params.fastq, type: 'dir', checkIfExists: true)
|
||||||
|
|||||||
@ -12,8 +12,11 @@
|
|||||||
|
|
||||||
params {
|
params {
|
||||||
help = false
|
help = false
|
||||||
|
fastq = null
|
||||||
out_dir = "output"
|
out_dir = "output"
|
||||||
wfversion = "v0.0.4"
|
wfversion = "v0.0.4"
|
||||||
|
aws_image_prefix = null
|
||||||
|
aws_queue = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +61,21 @@ profiles {
|
|||||||
cacheDir = ""
|
cacheDir = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
awsbatch {
|
||||||
|
process {
|
||||||
|
executor = 'awsbatch'
|
||||||
|
//queue = "${params.aws_queue}"
|
||||||
|
queue = "${params.aws_queue}"
|
||||||
|
memory = '8G'
|
||||||
|
withLabel:pysam {
|
||||||
|
container = "${params.aws_image_prefix}-wf-template:${params.wfversion}"
|
||||||
|
}
|
||||||
|
shell = ['/bin/bash', '-euo', 'pipefail']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
aws.region = 'eu-west-1'
|
||||||
|
aws.batch.cliPath = '/home/ec2-user/miniconda/bin/aws'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user