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
412a98d3
Commit
412a98d3
authored
10 years ago
by
BIOPZ-Johner Niklaus
Browse files
Options
Downloads
Patches
Plain Diff
Added documentation for the mol.alg.helix_kink module
parent
e62b67f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/alg/doc/molalg.rst
+5
-0
5 additions, 0 deletions
modules/mol/alg/doc/molalg.rst
modules/mol/alg/pymod/helix_kinks.py
+20
-13
20 additions, 13 deletions
modules/mol/alg/pymod/helix_kinks.py
with
25 additions
and
13 deletions
modules/mol/alg/doc/molalg.rst
+
5
−
0
View file @
412a98d3
...
...
@@ -860,6 +860,11 @@ used to skip frames in the analysis.
consecutive frames analyzed.
:mod:`mol.alg.helix_kinks <ost.mol.alg.helix_kinks>` -- Algorithms to calculate Helix Kinks
================================================================================================
.. autofunction:: ost.mol.alg.helix_kinks.CalculateHelixKink
.. autofunction:: ost.mol.alg.helix_kinks.AnalyzeHelixKink
This diff is collapsed.
Click to expand it.
modules/mol/alg/pymod/helix_kinks.py
+
20
−
13
View file @
412a98d3
...
...
@@ -80,13 +80,17 @@ def AnalyzeHelixKink(t,sele,proline=False):
there are at least 4 residues on each side (8 is even better) of the prolin around which
the helix is kinked. The selection should contain all residues in the correct
order and with no gaps and no missing C-alphas.
Input:
t : The trajectory to be analyzed (CoordGroup)
sele : A selection containing the alpha helix to be analyzed (EntityView)
proline=False : An EntityView containing only the proline (or another residue) around which the
helix is kinked. If False, the proline will be serached for automatically
Output:
(bend_angle,face_shift,wobble_angle) : a tuple of FloatLists
:param t: The trajectory to be analyzed
:type t: `~ost.mol.CoordGroup`
:param sele: A selection containing the alpha helix to be analyzed
:type sele: :class:`~ost.mol.EntityView`
:param proline=False: A selection containing only the proline (or another residue) around
which the helix is kinked. If False, the proline will be serached for automatically
:type proline: :class:`ost.mol.EntityView`
:return: A tuple (bend_angle, face_shift, wobble_angle).
:rtype: (FloatList, FLoatList, FloatList)
"""
n_frames
=
t
.
GetFrameCount
()
(
proline
,
proline_ca
)
=
__FindProline
(
sele
,
proline
)
...
...
@@ -121,12 +125,15 @@ def CalculateHelixKink(sele,proline=False):
there are at least 4 residues on each side (8 is even better) of the prolin around which
the helix is kinked. The selection should contain all residues in the correct
order and with no gaps and no missing C-alphas.
Input:
sele : A selection containing the alpha helix to be analyzed (EntityView)
proline=False : An EntityView containing only the proline (or another residue) around which the
helix is kinked. If False, the proline will be serached for automatically
Output:
(bend_angle,face_shift,wobble_angle) : a tuple of Floats
:param sele: A selection containing the alpha helix to be analyzed
:type sele: :class:`~ost.mol.EntityView`
:param proline=False: A selection containing only the proline (or another residue) around
which the helix is kinked. If False, the proline will be serached for automatically
:type proline: :class:`ost.mol.EntityView`
:return: A tuple (bend_angle, face_shift, wobble_angle).
:rtype: (float, float, float)
"""
(
proline
,
proline_ca
)
=
__FindProline
(
sele
,
proline
)
proline_num
=
proline
.
GetNumber
().
num
...
...
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