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:
1
main.nf
1
main.nf
@@ -25,7 +25,6 @@ params.weights = '/mnt/databases/RFAA_paper_weights.pt'
|
||||
|
||||
process RFAA_PREDICT {
|
||||
container 'harbor.cluster.omic.ai/omic/rosettafold-all-atom:latest'
|
||||
containerOptions '--rm --gpus all -v /mnt:/mnt'
|
||||
publishDir params.outdir, mode: 'copy'
|
||||
stageInMode 'copy'
|
||||
|
||||
|
||||
@@ -32,10 +32,45 @@ params {
|
||||
weights = "/mnt/databases/RFAA_paper_weights.pt"
|
||||
}
|
||||
|
||||
// Container configurations
|
||||
docker {
|
||||
// Profiles
|
||||
profiles {
|
||||
standard {
|
||||
docker {
|
||||
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
|
||||
@@ -43,24 +78,3 @@ process {
|
||||
cpus = 8
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user