Commit 53b295fa authored by Remi Perenon's avatar Remi Perenon
Browse files

Fixed residue number if Cys is named Cyx (MMTK commit 7b63e98)

parent 7208b4a1
...@@ -394,7 +394,10 @@ class PeptideChain(Biopolymers.ResidueChain): ...@@ -394,7 +394,10 @@ class PeptideChain(Biopolymers.ResidueChain):
self.atoms.extend(r_new.atoms) self.atoms.extend(r_new.atoms)
self.bonds.extend(r_new.bonds) self.bonds.extend(r_new.bonds)
r_new.sequence_number = n+1 r_new.sequence_number = n+1
r_new.name = r_new.symbol+`n+1` if r_old.name.startswith(r_old.symbol):
r_new.name = r_new.symbol+r_old.name[len(r_old.symbol):]
else:
r_new.name = r_new.symbol+`n+1`
r_new.parent = self r_new.parent = self
self.groups[n] = r_new self.groups[n] = r_new
if n > 0: if n > 0:
......
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