A bunch of algorithms operating on two views.
Authors: Marco Biasini, Pascal Benkert
def ost.mol.alg.views.RepresentativeAtoms |
( |
|
ent, |
|
|
|
chain = None , |
|
|
|
alpha_and_beta = False |
|
) |
| |
Returns a view with one or two representative atom per amino acid residue.
There are two basic modes, controlled by the alpha_and_beta parameter:
When the parameter is false, for residues with a sidechain, the C-beta atom is
used, for residues without sidechain, the C-alpha atom is used. Note that this
is different from using the selection
(aname=CA and rname=GLY) or (aname=CB and rname!=GLY)
When the alpha_and_beta parameter is true, both C-alpha and C-beta (if
available) are added to the view.
If chain is not equal to None, only atoms of the chain with that chain name
will be added to the view.
Definition at line 54 of file views.py.