Fix image pull and gender arg for WES

- Push as Docker V2 manifest (no OCI index/attestation) so K8s can pull
- Tag as v3 to avoid cached image issues
- Fix gender: omit -g flag for 0.5 (both), Synthea only accepts M or F
This commit is contained in:
2026-03-25 14:29:59 +01:00
parent f29323323b
commit 02d93f9360
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ if (!params.outdir) {
// Process to generate synthetic patients
process generatePatients {
container 'harbor.cluster.omic.ai/omic/synthea-alldiseases:v2'
container 'harbor.cluster.omic.ai/omic/synthea-alldiseases:v3'
publishDir params.outdir, mode: 'copy'
input:
@@ -34,13 +34,13 @@ process generatePatients {
script:
def moduleBasename = diseaseName.toLowerCase().replaceAll(' ', '_')
def genderArg = params.gender < 0.5 ? "M" : (params.gender > 0.5 ? "F" : "B")
def genderArg = params.gender < 0.5 ? "-g M" : (params.gender > 0.5 ? "-g F" : "")
def seedArg = params.seed ? "-s ${params.seed}" : ""
"""
# Use pre-built jar directly (bypasses Gradle which needs write access to .gradle)
cd /app && java -jar /app/build/libs/synthea-with-dependencies.jar \
-p ${params.population} \
-g ${genderArg} \
${genderArg} \
-a ${params.min_age}-${params.max_age} \
${seedArg} 2>&1 | tee run.log