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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
ProMod3
Commits
c27d449d
Commit
c27d449d
authored
3 months ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
expose keep_sidechains flag in promod3.modelling.BuildSidechains
parent
fddea94a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modelling/pymod/_pipeline.py
+8
-3
8 additions, 3 deletions
modelling/pymod/_pipeline.py
with
8 additions
and
3 deletions
modelling/pymod/_pipeline.py
+
8
−
3
View file @
c27d449d
...
...
@@ -183,7 +183,7 @@ def _GetSimEntity(sim):
def
BuildSidechains
(
mhandle
,
merge_distance
=
4
,
fragment_db
=
None
,
structure_db
=
None
,
torsion_sampler
=
None
,
rotamer_library
=
None
):
rotamer_library
=
None
,
keep_sidechains
=
True
):
'''
Build sidechains for model.
This is a wrapper for :func:`promod3.modelling.ReconstructSidechains`,
...
...
@@ -213,7 +213,12 @@ def BuildSidechains(mhandle, merge_distance=4, fragment_db=None,
:func:`modelling.ReconstructSidechains`, a default
one is loaded if None.
:type rotamer_library: :class:`~promod3.sidechain.RotamerLib` or
:class:`~promod3.sidechain.BBDepRotamerLib`
:class:`~promod3.sidechain.BBDepRotamerLib`
:param keep_sidechains: Used as parameter for
:func:`~promod3.modelling.ReconstructSidechains`,
controls if complete sidechains in *mhandle* should
be kept and not re-modelled.
:type keep_sidechains: :class:`bool`
'''
prof
=
core
.
StaticRuntimeProfiler
.
StartScoped
(
'
pipeline::BuildSidechains
'
)
ost
.
LogInfo
(
"
Rebuilding sidechains.
"
)
...
...
@@ -246,7 +251,7 @@ def BuildSidechains(mhandle, merge_distance=4, fragment_db=None,
FillLoopsByDatabase
(
mhandle
,
fragment_db
,
structure_db
,
torsion_sampler
,
ring_punch_detection
=
2
)
# re-build sidechains
ReconstructSidechains
(
mhandle
.
model
,
keep_sidechains
=
True
,
ReconstructSidechains
(
mhandle
.
model
,
keep_sidechains
=
keep_sidechains
,
rotamer_library
=
rotamer_library
)
# restore gaps
mhandle
.
gaps
=
StructuralGapList
()
...
...
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