Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
daf36b3e
Verified
Commit
daf36b3e
authored
2 years ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
doc: SCHWED-5783 ligand assigment
parent
a8dc81a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/alg/pymod/ligand_scoring.py
+21
-2
21 additions, 2 deletions
modules/mol/alg/pymod/ligand_scoring.py
with
21 additions
and
2 deletions
modules/mol/alg/pymod/ligand_scoring.py
+
21
−
2
View file @
daf36b3e
...
...
@@ -570,9 +570,28 @@ class LigandScorer:
def
_assign_matrices
(
self
,
mat1
,
mat2
,
data
,
main_key
):
"""
Perform the ligand assignment, ie find the mapping between model and
target ligands.
The algorithm starts by assigning the
"
best
"
mapping, and then discards
the target and model ligands (row, column) so that every model ligand
can be assigned to a single target ligand, and every target ligand
is only assigned to a single model ligand. Repeat until there is
nothing left to assign.
In case of a tie in values in `mat1`, it uses `mat2` to break the tie.
This algorithm doesn
'
t guarantee a globally optimal assignment.
Both `mat1` and `mat2` should contain values between 0 and infinity,
with lower values representing better scores. Use the
:meth:`_reverse_lddt` method to convert lDDT values to such a score.
:param mat1: the main ligand assignment criteria (RMSD or lDDT-PLI)
:param mat2: the secondary ligand assignment criteria (lDDT-PLI or RMSD)
:param data: the data (either self._rmsd_full_matrix or self._lddt_pli_matrix
:param mat2: the secondary ligand assignment criteria (lDDT-PLI or RMSD)
:param data: the data (either self._rmsd_full_matrix or self._lddt_pli_matrix)
:param main_key: the key of data (dictionnaries within `data`) to
assign into out_main.
:return: a tuple with 2 dictionaries of matrices containing the main
data, and details, respectively.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment