File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments