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

test: SCHWED-5540 add test for custom mapping

parent a0d43e03
No related branches found
Tags 1.8.0
No related merge requests found
......@@ -377,6 +377,17 @@ class TestLigandScoring(unittest.TestCase):
assert sc.rmsd_details["L_2"][1]["chain_mapping"] == {'C': 'A'}
assert sc.lddt_pli_details["L_2"][1]["chain_mapping"] == {'C': 'A'}
# Custom
sc = LigandScorer(mdl, trg, None, None, global_chain_mapping=True, custom_mapping={'A': 'A'})
assert sc.rmsd_details["L_2"][1]["chain_mapping"] == {'A': 'A'}
assert sc.lddt_pli_details["L_2"][1]["chain_mapping"] == {'A': 'A'}
# Custom only active with global chain mapping
sc = LigandScorer(mdl, trg, None, None, global_chain_mapping=False, custom_mapping={'A': 'A'})
assert sc.rmsd_details["L_2"][1]["chain_mapping"] == {'A': 'A'}
assert sc.lddt_pli_details["L_2"][1]["chain_mapping"] == {'C': 'A'}
def test_rmsd_assignment(self):
"""Test that the RMSD-based assignment works.
......
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