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
0dfc8683
Commit
0dfc8683
authored
7 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
Added doc for SecStructure.
parent
5076d713
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/base/doc/entity.rst
+49
-1
49 additions, 1 deletion
modules/mol/base/doc/entity.rst
modules/mol/base/doc/query.rst
+1
-1
1 addition, 1 deletion
modules/mol/base/doc/query.rst
with
50 additions
and
2 deletions
modules/mol/base/doc/entity.rst
+
49
−
1
View file @
0dfc8683
...
@@ -534,6 +534,8 @@ The Handle Classes
...
@@ -534,6 +534,8 @@ The Handle Classes
.. attribute:: sec_structure
.. attribute:: sec_structure
The secondary structure of the residue.
The secondary structure of the residue.
:type: :class:`SecStructure`
.. attribute:: is_ligand
.. attribute:: is_ligand
...
@@ -1755,7 +1757,7 @@ here.
...
@@ -1755,7 +1757,7 @@ here.
``CHAINTYPE_POLY_PEPTIDE_D``, ``CHAINTYPE_POLY_PEPTIDE_L``,
``CHAINTYPE_POLY_PEPTIDE_D``, ``CHAINTYPE_POLY_PEPTIDE_L``,
``CHAINTYPE_POLY_DN``, ``CHAINTYPE_POLY_RN``, ``CHAINTYPE_POLY_SAC_D``,
``CHAINTYPE_POLY_DN``, ``CHAINTYPE_POLY_RN``, ``CHAINTYPE_POLY_SAC_D``,
``CHAINTYPE_POLY_SAC_L``, ``CHAINTYPE_POLY_DN_RN``,
``CHAINTYPE_POLY_SAC_L``, ``CHAINTYPE_POLY_DN_RN``,
``CHAINTYPE_UNKNOWN``, ``CHAINTYPE_N_CHAINTYPES``
``CHAINTYPE_UNKNOWN``, ``CHAINTYPE_N_CHAINTYPES``
Where ``CHAINTYPE_N_CHAINTYPES`` holds the number of different types available.
Where ``CHAINTYPE_N_CHAINTYPES`` holds the number of different types available.
...
@@ -1795,3 +1797,49 @@ ViewAddFlags
...
@@ -1795,3 +1797,49 @@ ViewAddFlags
* ``CHECK_DUPLICATES`` - If set, it will be checked that no duplicates are
* ``CHECK_DUPLICATES`` - If set, it will be checked that no duplicates are
created when adding a new handle
created when adding a new handle
SecStructure
--------------------------------------------------------------------------------
.. class:: SecStructure(type)
Defines a secondary structure type following the types defined by DSSP.
:param type: Type to be set for this object.
:type type: :class:`SecStructure.Type` / :class:`str`
.. method:: IsHelical
:return: True, if the set type is any type of helix (i.e. ALPHA_HELIX,
PI_HELIX or THREE_TEN_HELIX)
.. method:: IsExtended
:return: True, if the set type is any type of beta sheet (i.e. EXTENDED,
BETA_BRIDGE)
.. method:: IsCoil
:return: True, if the set type is any type of coil (i.e. TURN, BEND or COIL)
.. method:: __str__
:return: The character corresponding to the set type (see
:class:`SecStructure.Type`)
.. class:: SecStructure.Type
Enumerates all popssible secondary structure types distinguished by DSSP.
Their values with the corresponding character code are listed here:
.. hlist::
:columns: 2
* ALPHA_HELIX = 'H'
* PI_HELIX = 'I'
* THREE_TEN_HELIX = 'G'
* EXTENDED = 'E'
* BETA_BRIDGE = 'B'
* TURN = 'T'
* BEND = 'S'
* COIL = 'C'
This diff is collapsed.
Click to expand it.
modules/mol/base/doc/query.rst
+
1
−
1
View file @
0dfc8683
...
@@ -187,7 +187,7 @@ numeric part is honored.
...
@@ -187,7 +187,7 @@ numeric part is honored.
**rtype** (str): Residue type as given by the DSSP code (e.g. "H" for alpha
**rtype** (str): Residue type as given by the DSSP code (e.g. "H" for alpha
helix, "E" for extended), "helix" for all helix types, "ext" or "strand" for
helix, "E" for extended), "helix" for all helix types, "ext" or "strand" for
all beta sheets or "coil" for any type of coil.
all beta sheets or "coil" for any type of coil
(see :class:`SecStructure`)
.
**rindex** (int): :attr:`Index<ResidueHandle.index>` of residue handle in chain.
**rindex** (int): :attr:`Index<ResidueHandle.index>` of residue handle in chain.
This index is the same for views and handles.
This index is the same for views and handles.
...
...
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