Skip to content

Commit bb1b533

Browse files
authored
Fixed bug where SS and Rg metrics only computed for subset of diffused atoms
The code was set up to always compute SS and Rg metrics for the diffused parts only, regardless of whether `compute_non_clash_metrics_for_diffused_region_only` was set to True/False.
1 parent cd4d94f commit bb1b533

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

models/rfd3/src/rfd3/metrics/design_metrics.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,13 @@ def get_all_backbone_metrics(
135135
)
136136

137137
if verbose:
138+
138139
if compute_non_clash_metrics_for_diffused_region_only:
139140
# Subset to diffused region only
140141
atom_array = atom_array[~atom_array.is_motif_atom_with_fixed_coord]
141142

142-
# ... Add additional metrics
143-
o |= get_ss_metrics_and_rg(
144-
atom_array[~atom_array.is_motif_atom_with_fixed_coord]
145-
)
143+
# SS and Rg metrics
144+
o |= get_ss_metrics_and_rg(atom_array)
146145

147146
# Basic compositional statistics
148147
starts = get_token_starts(atom_array)

0 commit comments

Comments
 (0)