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
346d90c4
Commit
346d90c4
authored
6 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
add some options to build-sidechains action
parent
0f06618a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
actions/doc/index.rst
+12
-2
12 additions, 2 deletions
actions/doc/index.rst
actions/pm-build-sidechains
+18
-2
18 additions, 2 deletions
actions/pm-build-sidechains
with
30 additions
and
4 deletions
actions/doc/index.rst
+
12
−
2
View file @
346d90c4
...
...
@@ -147,8 +147,8 @@ You can (re-)construct the sidechains in a model from the command line.
.. code-block:: console
$ usage: build-sidechains [-h] (-p <FILE> | -e <FILE>) [-o <FILENAME>] [-k]
[-
n
] [-
r
]
$ usage: build-sidechains [-h] (-p <FILE> | -e <FILE>) [-o <FILENAME>] [-k]
[-n]
[-
r] [-i
] [-
s
]
Example usage:
...
...
@@ -180,3 +180,13 @@ Several flags control the modelling behaviour:
Do not use rotamers with subrotamers
.. option:: -i, --backbone-independent
Use backbone independent rotamer library
(from :meth:`promod3.sidechain.LoadLib`) instead of the default backbone
dependent one (from :meth:`promod3.sidechain.LoadBBDepLib`)
.. option:: -s, --no-subrotamer-optimization
Dont do subrotamer optimization if flexible rotamer model is used
This diff is collapsed.
Click to expand it.
actions/pm-build-sidechains
+
18
−
2
View file @
346d90c4
...
...
@@ -11,7 +11,7 @@ Example usage:
import os
import ost
from ost import io, settings
from promod3 import modelling
from promod3 import modelling
, sidechain
from promod3.core import pm3argparse, helper
# make sure we see output when passing '-h'
...
...
@@ -32,6 +32,12 @@ parser.add_argument('-n', '--no-disulfids', action='store_true',
'optimization')
parser.add_argument('-r', '--rigid-rotamers', action='store_true',
help='Do not use rotamers with subrotamers')
parser.add_argument('-i', '--backbone-independent', action='store_true',
help='Use backbone independent rotamer library instead ' +
'of the default backbone dependent one')
parser.add_argument('-s', '--no-subrotamer-optimization', action='store_true',
help='Dont do subrotamer optimization if flexible ' +
'rotamer model is used.')
opts = parser.Parse()
...
...
@@ -45,10 +51,20 @@ rotamer_model = "frm"
if opts.rigid_rotamers:
rotamer_model = "rrm"
lib = None
if opts.backbone_independent:
lib = sidechain.LoadLib()
opt_subrot = True
if opts.no_subrotamer_optimization:
opt_subrot = False
# do sidechain modelling
modelling.ReconstructSidechains(prot, keep_sidechains=opts.keep_sidechains,
build_disulfids=opts.no_disulfids==False,
rotamer_model=rotamer_model)
rotamer_model=rotamer_model,
rotamer_library=lib,
optimize_subrotamers=opt_subrot)
# output
ost.PopVerbosityLevel()
...
...
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