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
f48e5248
Verified
Commit
f48e5248
authored
1 year ago
by
Xavier Robin
Browse files
Options
Downloads
Patches
Plain Diff
refactor: SCHWED-5540 rename lDDT-BS to lDDT-LP in ligand scoring
parent
1d3c5a04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
actions/ost-compare-ligand-structures
+4
-4
4 additions, 4 deletions
actions/ost-compare-ligand-structures
modules/mol/alg/pymod/ligand_scoring.py
+9
-9
9 additions, 9 deletions
modules/mol/alg/pymod/ligand_scoring.py
with
13 additions
and
13 deletions
actions/ost-compare-ligand-structures
+
4
−
4
View file @
f48e5248
...
...
@@ -197,10 +197,10 @@ def _ParseArgs():
help=("lDDT inclusion radius for lDDT-PLI."))
parser.add_argument(
"--lddt-
bs
-radius",
dest="lddt_
bs
_radius",
"--lddt-
lp
-radius",
dest="lddt_
lp
_radius",
default=4.0,
help=("lDDT inclusion radius for lDDT-
BS
."))
help=("lDDT inclusion radius for lDDT-
LP
."))
parser.add_argument(
'-v',
...
...
@@ -305,7 +305,7 @@ def _Process(model, model_ligands, reference, reference_ligands, args):
substructure_match=args.substructure_match,
radius=args.radius,
lddt_pli_radius=args.lddt_pli_radius,
lddt_
bs
_radius=args.lddt_
bs
_radius
lddt_
lp
_radius=args.lddt_
lp
_radius
)
out = dict()
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/pymod/ligand_scoring.py
+
9
−
9
View file @
f48e5248
...
...
@@ -170,8 +170,8 @@ class LigandScorer:
:type radius: :class:`float`
:param lddt_pli_radius: lDDT inclusion radius for lDDT-PLI.
:type lddt_pli_radius: :class:`float`
:param lddt_
bs
_radius: lDDT inclusion radius for lDDT-
BS
.
:type lddt_
bs
_radius: :class:`float`
:param lddt_
lp
_radius: lDDT inclusion radius for lDDT-
LP
.
:type lddt_
lp
_radius: :class:`float`
:param binding_sites_topn: maximum number of target binding site
representations to assess, per target ligand.
:type binding_sites_topn: :class:`int`
...
...
@@ -180,7 +180,7 @@ class LigandScorer:
resnum_alignments
=
False
,
check_resnames
=
True
,
rename_ligand_chain
=
False
,
chain_mapper
=
None
,
substructure_match
=
False
,
radius
=
4.0
,
lddt_pli_radius
=
6.0
,
lddt_
bs
_radius
=
10.0
,
radius
=
4.0
,
lddt_pli_radius
=
6.0
,
lddt_
lp
_radius
=
10.0
,
binding_sites_topn
=
100000
):
if
isinstance
(
model
,
mol
.
EntityView
):
...
...
@@ -224,7 +224,7 @@ class LigandScorer:
self
.
substructure_match
=
substructure_match
self
.
radius
=
radius
self
.
lddt_pli_radius
=
lddt_pli_radius
self
.
lddt_
bs
_radius
=
lddt_
bs
_radius
self
.
lddt_
lp
_radius
=
lddt_
lp
_radius
self
.
binding_sites_topn
=
binding_sites_topn
# scoring matrices
...
...
@@ -416,7 +416,7 @@ class LigandScorer:
# Find the representations
self
.
_binding_sites
[
ligand
.
hash_code
]
=
self
.
chain_mapper
.
GetRepr
(
ref_bs
,
self
.
model
,
inclusion_radius
=
self
.
lddt_
bs
_radius
,
ref_bs
,
self
.
model
,
inclusion_radius
=
self
.
lddt_
lp
_radius
,
topn
=
self
.
binding_sites_topn
)
return
self
.
_binding_sites
[
ligand
.
hash_code
]
...
...
@@ -530,7 +530,7 @@ class LigandScorer:
rmsd_full_matrix
[
target_i
,
model_i
][
"
rmsd
"
]
>
rmsd
:
rmsd_full_matrix
[
target_i
,
model_i
]
=
{
"
rmsd
"
:
rmsd
,
"
lddt_
bs
"
:
binding_site
.
lDDT
,
"
lddt_
lp
"
:
binding_site
.
lDDT
,
"
bs_ref_res
"
:
binding_site
.
substructure
.
residues
,
"
bs_ref_res_mapped
"
:
binding_site
.
ref_residues
,
"
bs_mdl_res_mapped
"
:
binding_site
.
mdl_residues
,
...
...
@@ -590,7 +590,7 @@ class LigandScorer:
lddt_pli_full_matrix
[
target_i
,
model_i
]
=
{
"
lddt_pli
"
:
global_lddt
,
"
rmsd
"
:
rmsd
,
"
lddt_
bs
"
:
binding_site
.
lDDT
,
"
lddt_
lp
"
:
binding_site
.
lDDT
,
"
lddt_pli_n_contacts
"
:
lddt_tot
,
"
bs_ref_res
"
:
binding_site
.
substructure
.
residues
,
"
bs_ref_res_mapped
"
:
binding_site
.
ref_residues
,
...
...
@@ -799,7 +799,7 @@ class LigandScorer:
Each sub-dictionary contains the following information:
* `rmsd`: the RMSD score value.
* `lddt_
bs
`: the lDDT
-BS
score of the
binding site
.
* `lddt_
lp
`: the lDDT score of the
ligand pocket (lDDT-LP)
.
* `bs_ref_res`: a list of residues (:class:`~ost.mol.ResidueHandle`)
that define the binding site in the reference.
* `bs_ref_res_mapped`: a list of residues
...
...
@@ -856,7 +856,7 @@ class LigandScorer:
chain mapping and assignment. This may differ from the RMSD-based
assignment. Note that a different isomorphism than `lddt_pli` may
be used.
* `lddt_
bs
`: the lDDT
-BS
score of the
binding site
.
* `lddt_
lp
`: the lDDT score of the
ligand pocket (lDDT-LP)
.
* `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.
...
...
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