Skip to content
Snippets Groups Projects
Commit 412a98d3 authored by BIOPZ-Johner Niklaus's avatar BIOPZ-Johner Niklaus
Browse files

Added documentation for the mol.alg.helix_kink module

parent e62b67f0
Branches
Tags
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment