Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProMod3
Manage
Activity
Members
Plan
Jira
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
ProMod3
Commits
6c097882
Commit
6c097882
authored
Dec 15, 2016
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
SCHWED-1560
: bugfixes for all atom pipeline
parent
24d54c31
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modelling/pymod/_closegaps.py
+12
-5
12 additions, 5 deletions
modelling/pymod/_closegaps.py
with
12 additions
and
5 deletions
modelling/pymod/_closegaps.py
+
12
−
5
View file @
6c097882
...
@@ -149,11 +149,15 @@ def _GetBestLC(mhandle, loop_candidates, start_resnum, chain_idx,
...
@@ -149,11 +149,15 @@ def _GetBestLC(mhandle, loop_candidates, start_resnum, chain_idx,
# extract relevant loop candidates and scores
# extract relevant loop candidates and scores
aa_loop_candidates
=
loop_candidates
.
Extract
(
min_indices
)
aa_loop_candidates
=
loop_candidates
.
Extract
(
min_indices
)
for
key
in
all_scores
:
for
key
in
all_scores
:
all_scores
[
key
]
=
all_scores
[
key
][
min_indices
]
all_scores
[
key
]
=
[
all_scores
[
key
][
i
]
for
i
in
min_indices
]
#
score them w/o relaxation
#
keep backup of loop of interest
loop_length
=
len
(
loop_candidates
[
0
])
loop_length
=
len
(
loop_candidates
[
0
])
loop_backup
=
aa_sc_env
.
GetEnvironment
(
start_resnum
,
loop_length
,
loop_backup
=
aa_sc_env
.
GetEnvironment
(
start_resnum
,
loop_length
,
chain_idx
)
chain_idx
)
# setup empty lists for AA results
for
key
in
_GetAaScoringKeys
():
all_scores
[
key
]
=
list
()
# score them w/o relaxation
for
lc_bb_list
in
aa_loop_candidates
:
for
lc_bb_list
in
aa_loop_candidates
:
# setup sc env. and reconstruct
# setup sc env. and reconstruct
aa_sc_env
.
SetEnvironment
(
lc_bb_list
,
start_resnum
,
chain_idx
)
aa_sc_env
.
SetEnvironment
(
lc_bb_list
,
start_resnum
,
chain_idx
)
...
@@ -161,9 +165,9 @@ def _GetBestLC(mhandle, loop_candidates, start_resnum, chain_idx,
...
@@ -161,9 +165,9 @@ def _GetBestLC(mhandle, loop_candidates, start_resnum, chain_idx,
# fix env. for scoring (always contains full loop too!)
# fix env. for scoring (always contains full loop too!)
aa_score_env
.
SetEnvironment
(
sc_result
.
env_pos
)
aa_score_env
.
SetEnvironment
(
sc_result
.
env_pos
)
for
key
in
_GetAaScoringKeys
():
for
key
in
_GetAaScoringKeys
():
score
s
=
aa_scorer
[
key
].
CalculateScore
(
start_resnum
,
score
=
aa_scorer
[
key
].
CalculateScore
(
start_resnum
,
loop_length
,
chain_idx
)
loop_length
,
chain_idx
)
all_scores
[
key
]
=
score
s
all_scores
[
key
]
.
append
(
score
)
# reset aa_sc_env
# reset aa_sc_env
aa_sc_env
.
SetEnvironment
(
loop_backup
)
aa_sc_env
.
SetEnvironment
(
loop_backup
)
# NOTE: we leave the aa_score_env in a modified state
# NOTE: we leave the aa_score_env in a modified state
...
@@ -284,6 +288,9 @@ def _CloseLoopFrame(mhandle, gap_orig, actual_candidates, actual_extended_gaps,
...
@@ -284,6 +288,9 @@ def _CloseLoopFrame(mhandle, gap_orig, actual_candidates, actual_extended_gaps,
# update score env.
# update score env.
mhandle
.
backbone_scorer_env
.
SetEnvironment
(
bb_list
,
start_resnum
,
mhandle
.
backbone_scorer_env
.
SetEnvironment
(
bb_list
,
start_resnum
,
actual_chain_idx
)
actual_chain_idx
)
if
all_atom
:
mhandle
.
all_atom_sidechain_env
.
SetEnvironment
(
bb_list
,
start_resnum
,
actual_chain_idx
)
ost
.
LogInfo
(
"
Resolved %s by filling %s (%d candidates)
"
%
\
ost
.
LogInfo
(
"
Resolved %s by filling %s (%d candidates)
"
%
\
(
str
(
gap_orig
),
(
str
(
gap_orig
),
str
(
actual_extended_gaps
[
idx_a
]),
str
(
actual_extended_gaps
[
idx_a
]),
...
...
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
sign in
to comment