Skip to content

Commit b2b9f3e

Browse files
authored
Update inputs.py (#203)
1 parent 994f620 commit b2b9f3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

alphafold3_pytorch/inputs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,6 +2737,7 @@ def pdb_input_to_molecule_input(
27372737
# create unique chain-residue index pairs to identify the first atom of each residue
27382738
chain_residue_index = np.array(list(zip(biomol.chain_index, biomol.residue_index)))
27392739
_, unique_chain_residue_indices = np.unique(chain_residue_index, axis=0, return_index=True)
2740+
unique_chain_residue_indices = np.sort(unique_chain_residue_indices)
27402741

27412742
# retrieve molecule_ids from the `Biomolecule` object, where here it is the mapping of 33 possible residue types
27422743
# `proteins (20) | unknown protein (1) | rna (4) | unknown RNA (1) | dna (4) | unknown DNA (1) | gap (1) | metal ion (1)`,

0 commit comments

Comments
 (0)