Skip to content

Commit 45fd765

Browse files
authored
Update inputs.py (#197)
1 parent 7bbd008 commit 45fd765

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

alphafold3_pytorch/inputs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,10 @@ def pdb_input_to_molecule_input(
28752875
distogram_atom_indices.append(entry["distogram_atom_idx"])
28762876
src_tgt_atom_indices.append([entry["first_atom_idx"], entry["last_atom_idx"]])
28772877

2878+
# keep track of the current residue index and atom index for subsequent atomized tokens
2879+
current_atom_index = 0
2880+
current_res_index = res_index
2881+
28782882
is_ligand_frame = torch.tensor(is_ligand_frame)
28792883
molecule_atom_indices = tensor(molecule_atom_indices)
28802884
token_center_atom_indices = tensor(token_center_atom_indices)

0 commit comments

Comments
 (0)