Skip to content

Commit 98fc03d

Browse files
committed
Fix boltzgen structure selection/
1 parent 77ff220 commit 98fc03d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/local/boltzgen_run.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ process BOLTZGEN_RUN {
2828
tuple val(meta), path("${meta.id}_output/intermediate_designs/*.npz"), optional: true, emit: intermediate_npz
2929

3030
// Intermediate inverse folded designs (all budget designs - this is what we want for IPSAE/PRODIGY)
31-
tuple val(meta), path("${meta.id}_output/intermediate_designs_inverse_folded/*.cif"), optional: true, emit: budget_design_cifs
31+
tuple val(meta), path("${meta.id}_output/final_ranked_designs/final_*_designs/*.cif"), optional: true, emit: budget_design_cifs
3232
tuple val(meta), path("${meta.id}_output/intermediate_designs_inverse_folded/*.npz"), optional: true, emit: budget_design_npz
3333

3434
// Specific intermediate outputs: binder by itself and refolded complex

workflows/protein_design.nf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ workflow PROTEIN_DESIGN {
6464
[design_meta, pdb_file]
6565
}
6666
}
67+
68+
ch_pdb_per_design.view()
6769

6870
// Run ProteinMPNN on each design individually (parallel execution per budget design)
6971
PROTEINMPNN_OPTIMIZE(ch_pdb_per_design)
@@ -183,7 +185,9 @@ workflow PROTEIN_DESIGN {
183185
// Match CIF files with corresponding NPZ files
184186
cif_list.collect { cif_file ->
185187
def base_name = cif_file.baseName
186-
def npz_file = npz_map[base_name]
188+
// Strip rank prefix (e.g. rank1_target_protein_design_1 -> target_protein_design_1)
189+
def match_name = base_name.replaceAll(/^rank\d+_/, '')
190+
def npz_file = npz_map[match_name]
187191

188192
if (npz_file) {
189193
def model_meta = [

0 commit comments

Comments
 (0)