Update nextflow config for Wes K8s execution with proper profiles

Add standard, k8s, and k8s_gpu profiles matching reference tool patterns.
Configure PVC mounting for eureka storage and GPU node selection.
Remove Docker-specific containerOptions from process definition.
This commit is contained in:
2026-03-18 11:56:19 +01:00
parent 6eef3bb748
commit b099a5ee38
2 changed files with 39 additions and 26 deletions

View File

@@ -25,7 +25,6 @@ params.weights = '/mnt/databases/RFAA_paper_weights.pt'
process RFAA_PREDICT { process RFAA_PREDICT {
container 'harbor.cluster.omic.ai/omic/rosettafold-all-atom:latest' container 'harbor.cluster.omic.ai/omic/rosettafold-all-atom:latest'
containerOptions '--rm --gpus all -v /mnt:/mnt'
publishDir params.outdir, mode: 'copy' publishDir params.outdir, mode: 'copy'
stageInMode 'copy' stageInMode 'copy'

View File

@@ -32,10 +32,45 @@ params {
weights = "/mnt/databases/RFAA_paper_weights.pt" weights = "/mnt/databases/RFAA_paper_weights.pt"
} }
// Container configurations // Profiles
profiles {
standard {
docker { docker {
enabled = true enabled = true
runOptions = '--gpus all' temp = 'auto'
runOptions = '--gpus all -v /mnt:/mnt'
}
}
k8s {
process {
executor = 'k8s'
container = 'harbor.cluster.omic.ai/omic/rosettafold-all-atom:latest'
}
docker {
enabled = true
}
k8s {
storageClaimName = 'eureka-pvc'
storageMountPath = '/omic/eureka'
}
}
k8s_gpu {
process {
executor = 'k8s'
container = 'harbor.cluster.omic.ai/omic/rosettafold-all-atom:latest'
pod = [[nodeSelector: 'nvidia.com/gpu.present=true']]
accelerator = [request: 1, type: 'nvidia.com/gpu']
}
docker {
enabled = true
}
k8s {
storageClaimName = 'eureka-pvc'
storageMountPath = '/omic/eureka'
}
}
} }
// Process configurations // Process configurations
@@ -43,24 +78,3 @@ process {
cpus = 8 cpus = 8
memory = '64 GB' memory = '64 GB'
} }
// Execution configurations
executor {
$local {
cpus = 16
memory = '64 GB'
}
}
// Profiles
profiles {
k8s {
process {
container = 'harbor.cluster.omic.ai/omic/rosettafold-all-atom:latest'
}
docker {
enabled = true
runOptions = '--gpus all'
}
}
}