Skip to content
Snippets Groups Projects
Verified Commit 5604ef16 authored by Xavier Robin's avatar Xavier Robin
Browse files

Rename chain of SDF ligands

This makes the verbose output of the action more readable
parent 7712d2e1
No related branches found
No related tags found
No related merge requests found
......@@ -432,7 +432,11 @@ def _LoadLigand(file):
"""
Load a single ligand from file names. Return an entity.
"""
return ost.io.LoadEntity(file, format="sdf")
ent = ost.io.LoadEntity(file, format="sdf")
ed = ent.EditXCS()
ed.RenameChain(ent.chains[0], file)
ed.UpdateICS()
return ent
def _CleanupStructure(entity):
......
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