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
f175d4c1
Commit
f175d4c1
authored
2 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
change way of selecting interface residues in order to be consistent with DockQ
parent
1541e13a
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/dockq.py
+23
-20
23 additions, 20 deletions
modules/mol/alg/pymod/dockq.py
with
23 additions
and
20 deletions
modules/mol/alg/pymod/dockq.py
+
23
−
20
View file @
f175d4c1
...
...
@@ -169,33 +169,36 @@ def _RMSDScores(mdl, ref, mdl_ch1, mdl_ch2, ref_ch1, ref_ch2, dist_thresh=10.0):
# iRMSD
#######
int1
=
mapped_ref
.
Select
(
f
"
cname=
{
ref_ch1
}
and
{
dist_thresh
}
<>
"
f
"
[cname=
{
ref_ch2
}
]
"
)
int2
=
mapped_ref
.
Select
(
f
"
cname=
{
ref_ch2
}
and
{
dist_thresh
}
<>
"
f
"
[cname=
{
ref_ch1
}
]
"
)
int1
=
ref
.
Select
(
f
"
cname=
{
ref_ch1
}
and
{
dist_thresh
}
<>
"
f
"
[cname=
{
ref_ch2
}
]
"
)
int2
=
ref
.
Select
(
f
"
cname=
{
ref_ch2
}
and
{
dist_thresh
}
<>
"
f
"
[cname=
{
ref_ch1
}
]
"
)
int1_indices
=
[
r
.
GetIntProp
(
"
dockq_idx
"
)
for
r
in
int1
.
residues
]
int2_indices
=
[
r
.
GetIntProp
(
"
dockq_idx
"
)
for
r
in
int2
.
residues
]
ref_pos
=
geom
.
Vec3List
()
mdl_pos
=
geom
.
Vec3List
()
atom_names
=
[
'
CA
'
,
'
C
'
,
'
N
'
,
'
O
'
]
for
idx
in
int1_indices
:
ref_r
=
ref_ch1_residues
[
idx
]
mdl_r
=
mdl_ch1_residues
[
idx
]
for
aname
in
atom_names
:
ref_a
=
ref_r
.
FindAtom
(
aname
)
mdl_a
=
mdl_r
.
FindAtom
(
aname
)
if
ref_a
.
IsValid
()
and
mdl_a
.
IsValid
():
ref_pos
.
append
(
ref_a
.
pos
)
mdl_pos
.
append
(
mdl_a
.
pos
)
if
idx
in
ref_ch1_residues
and
idx
in
mdl_ch1_residues
:
ref_r
=
ref_ch1_residues
[
idx
]
mdl_r
=
mdl_ch1_residues
[
idx
]
for
aname
in
atom_names
:
ref_a
=
ref_r
.
FindAtom
(
aname
)
mdl_a
=
mdl_r
.
FindAtom
(
aname
)
if
ref_a
.
IsValid
()
and
mdl_a
.
IsValid
():
ref_pos
.
append
(
ref_a
.
pos
)
mdl_pos
.
append
(
mdl_a
.
pos
)
for
idx
in
int2_indices
:
ref_r
=
ref_ch2_residues
[
idx
]
mdl_r
=
mdl_ch2_residues
[
idx
]
for
aname
in
atom_names
:
ref_a
=
ref_r
.
FindAtom
(
aname
)
mdl_a
=
mdl_r
.
FindAtom
(
aname
)
if
ref_a
.
IsValid
()
and
mdl_a
.
IsValid
():
ref_pos
.
append
(
ref_a
.
pos
)
mdl_pos
.
append
(
mdl_a
.
pos
)
if
idx
in
ref_ch2_residues
and
idx
in
mdl_ch2_residues
:
ref_r
=
ref_ch2_residues
[
idx
]
mdl_r
=
mdl_ch2_residues
[
idx
]
for
aname
in
atom_names
:
ref_a
=
ref_r
.
FindAtom
(
aname
)
mdl_a
=
mdl_r
.
FindAtom
(
aname
)
if
ref_a
.
IsValid
()
and
mdl_a
.
IsValid
():
ref_pos
.
append
(
ref_a
.
pos
)
mdl_pos
.
append
(
mdl_a
.
pos
)
if
len
(
mdl_pos
)
>=
3
:
sup_result
=
mol
.
alg
.
SuperposeSVD
(
mdl_pos
,
ref_pos
)
...
...
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