"git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "9162f3ad2a9578072eac3c42bca7420041a5a6f1"
Commit d4b6163d authored by Geoffrey Yu's avatar Geoffrey Yu
Browse files

fixed the assertion errors in get_optimal_transform

parent e3e8a681
...@@ -139,7 +139,7 @@ def multi_chain_perm_align(out, batch, labels, shuffle_times=2): ...@@ -139,7 +139,7 @@ def multi_chain_perm_align(out, batch, labels, shuffle_times=2):
anchor_residue_idx = per_asym_residue_index[int(cur_asym_id)] anchor_residue_idx = per_asym_residue_index[int(cur_asym_id)]
print(f"anchor_residue_idx:{anchor_residue_idx},anchor_gt_idx:{anchor_gt_idx}\n") print(f"anchor_residue_idx:{anchor_residue_idx},anchor_gt_idx:{anchor_gt_idx}\n")
anchor_true_pos = true_ca_poses[anchor_gt_idx][anchor_residue_idx] anchor_true_pos = true_ca_poses[anchor_gt_idx][anchor_residue_idx[:,0]] # somehow need to only use the first column in anchor_residue_idx
asym_mask = asym_mask[:,0] # somehow need to adjust the asym_mask shape asym_mask = asym_mask[:,0] # somehow need to adjust the asym_mask shape
anchor_pred_pos = pred_ca_pos[asym_mask] anchor_pred_pos = pred_ca_pos[asym_mask]
print(f"true_ca_masks:\n") print(f"true_ca_masks:\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment