Files
pocketminer/main.nf
Olamide Isreal 5465d9b8b1 Fix nextflow.config to match WES k8s pattern
- Match p2rank's working config structure: k8s profile only sets container
- Let WES-generated profile.config handle executor, storage, and k8s settings
- Add memory (8GB) and cpu (2) resource requests
- Set params defaults to null (values provided by WES experiment_params)
- Add manifest metadata
2026-03-23 13:51:38 +01:00

45 lines
1.1 KiB
Plaintext

#!/usr/bin/env nextflow
nextflow.enable.dsl=2
// Parameters
params.pdb = null
params.outdir = null
params.model_path = '/workspace/gvp/models/pocketminer'
params.debug = false
// Process definition
process POCKETMINER {
container 'harbor.cluster.omic.ai/omic/pocketminer:latest'
publishDir params.outdir, mode: 'copy'
stageInMode 'copy'
input:
path pdb_file
output:
path "*-preds.npy", emit: predictions_npy
path "*-predictions.txt", emit: predictions_txt
path "*-summary.json", emit: summary
path "*_X.npy", optional: true, emit: features_debug
path "*_S.npy", optional: true, emit: sequence_debug
path "*_mask.npy", optional: true, emit: mask_debug
script:
def pdb_basename = pdb_file.baseName
def debug_flag = params.debug ? '--debug' : ''
"""
python /workspace/entrypoint.py \\
--pdb ${pdb_file} \\
--output-folder . \\
--output-name ${pdb_basename} \\
--model-path ${params.model_path} \\
${debug_flag}
"""
}
// Workflow
workflow {
POCKETMINER(Channel.of(file(params.pdb)))
}