Skip to content
Snippets Groups Projects
Unverified Commit c7f4ab17 authored by Xavier Robin's avatar Xavier Robin Committed by Xavier Robin
Browse files

fix: set type of newly created chain

parent adb141f9
No related branches found
No related tags found
No related merge requests found
......@@ -777,6 +777,8 @@ class LigandScorer:
new_chain = new_entity.FindChain(residue.chain.name)
if not new_chain.IsValid():
new_chain = new_editor.InsertChain(residue.chain.name)
new_editor.SetChainType(new_chain,
mol.ChainType.CHAINTYPE_NON_POLY)
else:
# Does a residue with the same name already exist?
already_exists = new_chain.FindResidue(residue.number).IsValid()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment