Skip to content
Snippets Groups Projects
Commit 36f7836b authored by Studer Gabriel's avatar Studer Gabriel
Browse files

lddtpli bugfix: handle case when mdl chain is not mapped to any chem group in ref

This is relevant if there are added mdl contacts.
parent 783b39d9
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,11 @@ class LDDTPLIScorer(ligand_scoring_base.LigandScorer):
already_mapped = set()
for mdl_ch in mdl_chains:
if mdl_ch not in lddt_chain_mapping:
if mdl_ch in self._mdl_chains_without_chem_mapping:
# this mdl chain does not map to any trg chain
continue
# check which chain in trg is closest
chem_grp_idx = None
for i, m in enumerate(self._chem_mapping):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment