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
7b47872d
Commit
7b47872d
authored
2 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
scoring: ensure that DockQ is only computed for polypep chains
parent
ef93b079
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/alg/pymod/scoring.py
+23
-19
23 additions, 19 deletions
modules/mol/alg/pymod/scoring.py
with
23 additions
and
19 deletions
modules/mol/alg/pymod/scoring.py
+
23
−
19
View file @
7b47872d
...
@@ -878,28 +878,32 @@ class Scorer:
...
@@ -878,28 +878,32 @@ class Scorer:
nonmapped_interface_counts
=
list
()
nonmapped_interface_counts
=
list
()
flat_mapping
=
self
.
mapping
.
GetFlatMapping
()
flat_mapping
=
self
.
mapping
.
GetFlatMapping
()
pep_seqs
=
set
([
s
.
GetName
()
for
s
in
self
.
chain_mapper
.
polypep_seqs
])
for
trg_int
in
self
.
qs_scorer
.
qsent1
.
interacting_chains
:
for
trg_int
in
self
.
qs_scorer
.
qsent1
.
interacting_chains
:
trg_ch1
=
trg_int
[
0
]
trg_ch1
=
trg_int
[
0
]
trg_ch2
=
trg_int
[
1
]
trg_ch2
=
trg_int
[
1
]
if
trg_ch1
in
flat_mapping
and
trg_ch2
in
flat_mapping
:
if
trg_ch1
in
pep_seqs
and
trg_ch2
in
pep_seqs
:
mdl_ch1
=
flat_mapping
[
trg_ch1
]
if
trg_ch1
in
flat_mapping
and
trg_ch2
in
flat_mapping
:
mdl_ch2
=
flat_mapping
[
trg_ch2
]
mdl_ch1
=
flat_mapping
[
trg_ch1
]
res
=
dockq
.
DockQ
(
self
.
model
,
self
.
target
,
mdl_ch1
,
mdl_ch2
,
mdl_ch2
=
flat_mapping
[
trg_ch2
]
trg_ch1
,
trg_ch2
)
res
=
dockq
.
DockQ
(
self
.
model
,
self
.
target
,
mdl_ch1
,
mdl_ch2
,
if
res
[
"
nnat
"
]
>
0
:
trg_ch1
,
trg_ch2
)
self
.
_dockq_interfaces
.
append
((
trg_ch1
,
trg_ch2
,
if
res
[
"
nnat
"
]
>
0
:
mdl_ch1
,
mdl_ch2
))
self
.
_dockq_interfaces
.
append
((
trg_ch1
,
trg_ch2
,
self
.
_dockq_native_contacts
.
append
(
res
[
"
nnat
"
])
mdl_ch1
,
mdl_ch2
))
self
.
_dockq_scores
.
append
(
res
[
"
DockQ
"
])
self
.
_dockq_native_contacts
.
append
(
res
[
"
nnat
"
])
else
:
self
.
_dockq_scores
.
append
(
res
[
"
DockQ
"
])
# interface which is not covered by mdl... let's run DockQ with
else
:
# trg as trg/mdl in order to get the native contacts out
# interface which is not covered by mdl... let's run DockQ
res
=
dockq
.
DockQ
(
self
.
target
,
self
.
target
,
# with trg as trg/mdl in order to get the native contacts
trg_ch1
,
trg_ch2
,
trg_ch1
,
trg_ch2
)
# out
if
res
[
"
nnat
"
]
>
0
:
res
=
dockq
.
DockQ
(
self
.
target
,
self
.
target
,
self
.
_dockq_nonmapped_interfaces
.
append
((
trg_ch1
,
trg_ch1
,
trg_ch2
,
trg_ch1
,
trg_ch2
)
trg_ch2
))
nnat
=
res
[
"
nnat
"
]
self
.
_dockq_nonmapped_interfaces_counts
.
append
(
res
[
"
nnat
"
])
if
nnat
>
0
:
self
.
_dockq_nonmapped_interfaces
.
append
((
trg_ch1
,
trg_ch2
))
self
.
_dockq_nonmapped_interfaces_counts
.
append
(
nnat
)
# there are 4 types of combined scores
# there are 4 types of combined scores
# - simple average
# - simple average
...
...
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