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
67a83442
Unverified
Commit
67a83442
authored
2 years ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
doc: SCHWED-5783 document new properties
parent
d6d2e258
Branches
Branches containing commit
Tags
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
+74
-2
74 additions, 2 deletions
modules/mol/alg/pymod/ligand_scoring.py
with
74 additions
and
2 deletions
modules/mol/alg/pymod/ligand_scoring.py
+
74
−
2
View file @
67a83442
...
@@ -564,7 +564,11 @@ class LigandScorer:
...
@@ -564,7 +564,11 @@ class LigandScorer:
@property
@property
def
rmsd_matrix
(
self
):
def
rmsd_matrix
(
self
):
"""
"""
Get the matrix of RMSD values.
Target ligands are in rows, model ligands in columns.
:rtype: :class:`~numpy.ndarray`
"""
"""
if
self
.
_rmsd_full_matrix
is
None
:
if
self
.
_rmsd_full_matrix
is
None
:
self
.
_compute_scores
()
self
.
_compute_scores
()
...
@@ -579,7 +583,11 @@ class LigandScorer:
...
@@ -579,7 +583,11 @@ class LigandScorer:
@property
@property
def
lddt_pli_matrix
(
self
):
def
lddt_pli_matrix
(
self
):
"""
"""
Get the matrix of lDDT-PLI values.
Target ligands are in rows, model ligands in columns.
:rtype: :class:`~numpy.ndarray`
"""
"""
if
self
.
_lddt_pli_full_matrix
is
None
:
if
self
.
_lddt_pli_full_matrix
is
None
:
self
.
_compute_scores
()
self
.
_compute_scores
()
...
@@ -594,36 +602,100 @@ class LigandScorer:
...
@@ -594,36 +602,100 @@ class LigandScorer:
@property
@property
def
rmsd
(
self
):
def
rmsd
(
self
):
"""
Get a dictionary of RMSD score values, keyed by model ligand
qualified names.
:rtype: :class:`dict`
"""
if
self
.
_rmsd
is
None
:
if
self
.
_rmsd
is
None
:
self
.
_assign_ligands_rmsd
()
self
.
_assign_ligands_rmsd
()
return
self
.
_rmsd
return
self
.
_rmsd
@property
@property
def
rmsd_assignment
(
self
):
def
rmsd_assignment
(
self
):
"""
Get a dictionary of RMSD-based ligand assignment, keyed by model
ligand qualified names. Values are the qualified names of the
corresponding target ligand.
:rtype: :class:`dict`
"""
if
self
.
_rmsd_assignment
is
None
:
if
self
.
_rmsd_assignment
is
None
:
self
.
_assign_ligands_rmsd
()
self
.
_assign_ligands_rmsd
()
return
self
.
_rmsd_assignment
return
self
.
_rmsd_assignment
@property
@property
def
rmsd_details
(
self
):
def
rmsd_details
(
self
):
"""
Get a dictionary of RMSD score details (dictionaries), keyed by
model ligand qualified names.
Each sub-dictionary contains the following information:
* `rmsd`: the RMSD score value
* `lddt_bs`: the lDDT-BS score of the binding site
* `bs_num_res`: number of residues in the target binding site
* `bs_num_overlap_res`: number of residues in the model overlapping
with the target binding site.
* `bb_rmsd`: the RMSD of the binding site backbone after superposition
* `target_ligand`: residue handle of the target ligand
* `model_ligand`: residue handle of the model ligand
* `chain_mapping`: local chain mapping as a dictionary, with target
chain name as key and model chain name as value.
:rtype: :class:`dict`
"""
if
self
.
_rmsd_details
is
None
:
if
self
.
_rmsd_details
is
None
:
self
.
_assign_ligands_rmsd
()
self
.
_assign_ligands_rmsd
()
return
self
.
_rmsd_details
return
self
.
_rmsd_details
@property
@property
def
lddt_pli
(
self
):
def
lddt_pli
(
self
):
"""
Get a dictionary of lDDT-PLI score values, keyed by model ligand
qualified names.
:rtype: :class:`dict`
"""
if
self
.
_lddt_pli
is
None
:
if
self
.
_lddt_pli
is
None
:
self
.
_assign_ligands_lddt_pli
()
self
.
_assign_ligands_lddt_pli
()
return
self
.
_lddt_pli
return
self
.
_lddt_pli
@property
@property
def
lddt_pli_assignment
(
self
):
def
lddt_pli_assignment
(
self
):
"""
Get a dictionary of lDDT-PLI-based ligand assignment, keyed by model
ligand qualified names. Values are the qualified names of the
corresponding target ligand.
:rtype: :class:`dict`
"""
if
self
.
_lddt_pli_assignment
is
None
:
if
self
.
_lddt_pli_assignment
is
None
:
self
.
_assign_ligands_lddt_pli
()
self
.
_assign_ligands_lddt_pli
()
return
self
.
_lddt_pli_assignment
return
self
.
_lddt_pli_assignment
@property
@property
def
lddt_pli_details
(
self
):
def
lddt_pli_details
(
self
):
"""
Get a dictionary of lDDT-PLI score details (dictionaries), keyed by
model ligand qualified names.
Each sub-dictionary contains the following information:
* `lddt_pli`: the lDDT-PLI score value
* `lddt_pli_n_contacts`: number of total contacts used in lDDT-PLI,
summed over all thresholds. Can be divided by 8 to obtain the number
of atomic contacts.
* `rmsd`: the RMSD score value corresponding to the lDDT-PLI
assignment. This may differ from the RMSD-based assignment.
* `lddt_bs`: the lDDT-BS score of the binding site
* `bs_num_res`: number of residues in the target binding site
* `bs_num_overlap_res`: number of residues in the model overlapping
with the target binding site.
* `bb_rmsd`: the RMSD of the binding site backbone after superposition.
Note: not used for lDDT-PLI computation.
* `target_ligand`: residue handle of the target ligand
* `model_ligand`: residue handle of the model ligand
* `chain_mapping`: local chain mapping as a dictionary, with target
chain name as key and model chain name as value.
:rtype: :class:`dict`
"""
if
self
.
_lddt_pli_details
is
None
:
if
self
.
_lddt_pli_details
is
None
:
self
.
_assign_ligands_lddt_pli
()
self
.
_assign_ligands_lddt_pli
()
return
self
.
_lddt_pli_details
return
self
.
_lddt_pli_details
...
...
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