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
58fd0538
Commit
58fd0538
authored
8 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
Added doc for ost.mol.ResNum (was about time).
parent
8512d2a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/base/doc/entity.rst
+44
-6
44 additions, 6 deletions
modules/mol/base/doc/entity.rst
with
44 additions
and
6 deletions
modules/mol/base/doc/entity.rst
+
44
−
6
View file @
58fd0538
...
@@ -113,7 +113,7 @@ The Handle Classes
...
@@ -113,7 +113,7 @@ The Handle Classes
:param chain_name: Chain identifier, e.g. "A"
:param chain_name: Chain identifier, e.g. "A"
:type chain_name: str
:type chain_name: str
:param res_num: residue number
:param res_num: residue number
:type res_num:
mol.
ResNum
:type res_num:
:class:`
ResNum
`
:returns: A valid :class:`ResidueHandle` if the chain exists and
:returns: A valid :class:`ResidueHandle` if the chain exists and
the chain contains a residue of the given residue
the chain contains a residue of the given residue
...
@@ -131,7 +131,7 @@ The Handle Classes
...
@@ -131,7 +131,7 @@ The Handle Classes
:param chain_name: Chain identifier, e.g. "A"
:param chain_name: Chain identifier, e.g. "A"
:type chain_name: str
:type chain_name: str
:param res_num: residue number
:param res_num: residue number
:type res_num:
mol.
ResNum
:type res_num:
:class:`
ResNum
`
:param atom_name: atom name, e.g. CA
:param atom_name: atom name, e.g. CA
:type atom_name: str
:type atom_name: str
...
@@ -367,7 +367,7 @@ The Handle Classes
...
@@ -367,7 +367,7 @@ The Handle Classes
Get residue by residue number. See also :attr:`residues`
Get residue by residue number. See also :attr:`residues`
:param res_num: residue number
:param res_num: residue number
:type res_num:
mol.
ResNum
:type res_num:
:class:`
ResNum
`
:returns: A valid :class:`ResidueHandle` if the chain contains
:returns: A valid :class:`ResidueHandle` if the chain contains
a residue with matching residue number, an invalid
a residue with matching residue number, an invalid
...
@@ -386,7 +386,7 @@ The Handle Classes
...
@@ -386,7 +386,7 @@ The Handle Classes
Get atom by residue number and atom name. See also :attr:`atoms`
Get atom by residue number and atom name. See also :attr:`atoms`
:param res_num: residue number
:param res_num: residue number
:type res_num:
mol.
ResNum
:type res_num:
:class:`
ResNum
`
:param atom_name: atom name, e.g. CA
:param atom_name: atom name, e.g. CA
:type atom_name: str
:type atom_name: str
...
@@ -994,7 +994,7 @@ The View Classes
...
@@ -994,7 +994,7 @@ The View Classes
:param chain_name: The chain name
:param chain_name: The chain name
:type chain_name: str
:type chain_name: str
:param res_num: The residue number
:param res_num: The residue number
:type res_num: ResNum or int
:type res_num:
:class:`
ResNum
`
or
:class:`
int
`
:param atom_name: The name of the atom
:param atom_name: The name of the atom
:type atom_name: str
:type atom_name: str
:rtype: class:`AtomView`
:rtype: class:`AtomView`
...
@@ -1597,7 +1597,45 @@ Other Entity-Related Functions
...
@@ -1597,7 +1597,45 @@ Other Entity-Related Functions
useful to combine several entities into one.
useful to combine several entities into one.
:returns :class:`EntityHandle`
:returns :class:`EntityHandle`
Residue Numbering
--------------------------------------------------------------------------------
.. class:: ResNum(num, ins_code='\0')
Number for a residue. The residue number has a numeric part and an (optional)
insertion-code. You can work with this object as if it was an integer and
comparison will look first at the numeric part and then the insertion-code.
All access to existing objects is read-only.
:param num: Numeric part of residue number.
:type num: :class:`int`
:param ins_code: Alpha-numeric part of residue number (optional insertion
code). Only first character kept.
:type ins_code: :class:`str`
.. attribute:: num
Numeric part of residue number.
:type: :class:`int`
.. attribute:: ins_code
Alpha-numeric part of residue number (insertion code). Single character.
:type: :class:`str`
.. method:: GetNum
:returns: :attr:`num`
.. method:: GetInsCode
:returns: :attr:`ins_code`
.. _chaintype:
.. _chaintype:
ChainType
ChainType
...
...
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