Skip to content

Commit

Permalink
fixup Protein deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed Dec 20, 2023
1 parent ea1271c commit 4e91467
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gufe/components/proteincomponent.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ def _from_dict(cls, ser_dict: dict):
for atom, info in zip(m.GetAtoms(), monomer_infos):
mi = Chem.AtomPDBResidueInfo()

mi.SetChainId(mi[0])
mi.SetSerialNumber(mi[1])
mi.SetSegmentNumber(mi[2])
mi.SetInsertionCode(mi[3])
mi.SetName(mi[4])
mi.SetResidueName(mi[5])
mi.SetResidueNumber(mi[6])
mi.SetIsHeteroAtom(mi[7] == 'Y')
mi.SetChainId(info[0])
mi.SetSerialNumber(info[1])
mi.SetSegmentNumber(info[2])
mi.SetInsertionCode(info[3])
mi.SetName(info[4])
mi.SetResidueName(info[5])
mi.SetResidueNumber(info[6])
mi.SetIsHeteroAtom(info[7] == 'Y')

atom.SetMonomerInfo(mi)

Expand Down

0 comments on commit 4e91467

Please sign in to comment.