Skip to content

Commit 64d1aa3

Browse files
authored
Merge pull request #56 from seqeralabs/seqera-ai/20251125-021958-fix-concurrent-modification-consolidation
Fix ConcurrentModificationException in consolidation trigger channel
2 parents 0489d7e + 0c066eb commit 64d1aa3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

workflows/protein_design.nf

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,28 +395,25 @@ workflow PROTEIN_DESIGN {
395395
ch_consolidate_script = Channel.fromPath("${projectDir}/assets/consolidate_design_metrics.py", checkIfExists: true)
396396

397397
// Create a trigger channel that waits for all analyses to complete
398+
// Collect all output channels that need to complete before consolidation
398399
// Start with Boltzgen results (always runs)
399400
ch_trigger = BOLTZGEN_RUN.out.results.collect()
400401

401402
// Mix in other outputs based on what's enabled
402403
if (params.run_proteinmpnn) {
403-
ch_trigger = ch_trigger
404-
.concat(PROTEINMPNN_OPTIMIZE.out.optimized_designs.collect())
404+
ch_trigger = ch_trigger.mix(PROTEINMPNN_OPTIMIZE.out.optimized_designs.collect())
405405
}
406406

407407
if (params.run_ipsae) {
408-
ch_trigger = ch_trigger
409-
.concat(IPSAE_CALCULATE.out.scores.collect())
408+
ch_trigger = ch_trigger.mix(IPSAE_CALCULATE.out.scores.collect())
410409
}
411410

412411
if (params.run_prodigy) {
413-
ch_trigger = ch_trigger
414-
.concat(PRODIGY_PREDICT.out.summary.collect())
412+
ch_trigger = ch_trigger.mix(PRODIGY_PREDICT.out.summary.collect())
415413
}
416414

417415
if (params.run_foldseek) {
418-
ch_trigger = ch_trigger
419-
.concat(FOLDSEEK_SEARCH.out.summary.collect())
416+
ch_trigger = ch_trigger.mix(FOLDSEEK_SEARCH.out.summary.collect())
420417
}
421418

422419
// After all outputs are collected, create a single trigger

0 commit comments

Comments
 (0)