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
6fbe9955
Unverified
Commit
6fbe9955
authored
9 months ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
Penalize added model contacts by default in lDDT-PLI
parent
954558da
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.txt
+5
-0
5 additions, 0 deletions
CHANGELOG.txt
actions/ost-compare-ligand-structures
+12
-5
12 additions, 5 deletions
actions/ost-compare-ligand-structures
modules/mol/alg/pymod/ligand_scoring_lddtpli.py
+5
-3
5 additions, 3 deletions
modules/mol/alg/pymod/ligand_scoring_lddtpli.py
with
22 additions
and
8 deletions
CHANGELOG.txt
+
5
−
0
View file @
6fbe9955
Changes in Release 2.9.0
--------------------------------------------------------------------------------
* lDDT-PLI now penalizes added model contacts by default.
Changes in Release 2.8.0
--------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
actions/ost-compare-ligand-structures
+
12
−
5
View file @
6fbe9955
...
...
@@ -299,11 +299,18 @@ def _ParseArgs():
help=("lDDT inclusion radius for lDDT-PLI."))
parser.add_argument(
"--lddt-pli-a
mc
",
dest="lddt_pli_a
mc
",
default=
Fals
e,
"--lddt-pli-a
dd-mdl-contacts
",
dest="lddt_pli_a
dd_mdl_contacts
",
default=
Tru
e,
action="store_true",
help=("Add model contacts (amc) when computing lDDT-PLI."))
help=("Add model contacts when computing lDDT-PLI."))
parser.add_argument(
"--no-lddt-pli-add-mdl-contacts",
dest="lddt_pli_add_mdl_contacts",
default=True,
action="store_false",
help=("DO NOT add model contacts when computing lDDT-PLI."))
# arguments relevant for rmsd
...
...
@@ -483,7 +490,7 @@ def _SetupLDDTPLIScorer(model, model_ligands, reference, reference_ligands, args
substructure_match = args.substructure_match,
coverage_delta = args.coverage_delta,
lddt_pli_radius = args.lddt_pli_radius,
add_mdl_contacts = args.lddt_pli_a
mc
)
add_mdl_contacts = args.lddt_pli_a
dd_mdl_contacts
)
def _SetupSCRMSDScorer(model, model_ligands, reference, reference_ligands, args):
return ligand_scoring_scrmsd.SCRMSDScorer(model, reference,
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/pymod/ligand_scoring_lddtpli.py
+
5
−
3
View file @
6fbe9955
import
numpy
as
np
from
ost
import
LogWarning
from
ost
import
LogWarning
,
LogInfo
from
ost
import
geom
from
ost
import
mol
from
ost
import
seq
...
...
@@ -84,7 +84,7 @@ class LDDTPLIScorer(ligand_scoring_base.LigandScorer):
:type max_symmetries: :class:`int`
:param lddt_pli_radius: lDDT inclusion radius for lDDT-PLI.
:type lddt_pli_radius: :class:`float`
:param add_mdl_contacts: Whether to
add md
l contacts.
:param add_mdl_contacts: Whether to
penalize added mode
l contacts.
:type add_mdl_contacts: :class:`bool`
:param lddt_pli_thresholds: Distance difference thresholds for lDDT.
:type lddt_pli_thresholds: :class:`list` of :class:`float`
...
...
@@ -103,7 +103,7 @@ class LDDTPLIScorer(ligand_scoring_base.LigandScorer):
resnum_alignments
=
False
,
rename_ligand_chain
=
False
,
substructure_match
=
False
,
coverage_delta
=
0.2
,
max_symmetries
=
1e5
,
lddt_pli_radius
=
6.0
,
add_mdl_contacts
=
Fals
e
,
add_mdl_contacts
=
Tru
e
,
lddt_pli_thresholds
=
[
0.5
,
1.0
,
2.0
,
4.0
],
lddt_pli_binding_site_radius
=
None
):
...
...
@@ -141,10 +141,12 @@ class LDDTPLIScorer(ligand_scoring_base.LigandScorer):
"""
Implements interface from parent
"""
if
self
.
add_mdl_contacts
:
LogInfo
(
"
Computing lDDT-PLI with added model contacts
"
)
result
=
self
.
_compute_lddt_pli_add_mdl_contacts
(
symmetries
,
target_ligand
,
model_ligand
)
else
:
LogInfo
(
"
Computing lDDT-PLI without added model contacts
"
)
result
=
self
.
_compute_lddt_pli_classic
(
symmetries
,
target_ligand
,
model_ligand
)
...
...
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