| Trees | Indices | Help |
|
|---|
|
|
object --+
|
AbstractPropertyMap
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
True if the mapping has a property for this residue.
Example:
>>> if (chain_id, res_id) in apmap:
... res, prop = apmap[(chain_id, res_id)]
@param chain_id: chain id
@type chain_id: char
@param res_id: residue id
@type res_id: char
|
Return property for a residue. @param chain_id: chain id @type chain_id: char @param res_id: residue id @type res_id: int or (char, int, char) @return: some residue property @rtype: anything (can be a tuple) |
Return number of residues for which the property is available. @return: number of residues @rtype: int |
True if the mapping has a property for this residue.
(Obsolete; use "id in mapping" instead.)
Example:
>>> if apmap.has_key((chain_id, res_id)):
... res, prop = apmap[(chain_id, res_id)]
Is equivalent to:
>>> if (chain_id, res_id) in apmap:
... res, prop = apmap[(chain_id, res_id)]
@param chain_id: chain id
@type chain_id: char
@param res_id: residue id
@type res_id: char
|
Return the list of residues. @return: list of residues for which the property was calculated @rtype: [(chain_id, res_id), (chain_id, res_id),...] |
Iterate over the (entity, property) list. Handy alternative to
the dictionary-like access.
Example:
>>> for (res, property) in iter(map):
... print res, property
@return: iterator
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Feb 5 17:59:53 2013 | http://epydoc.sourceforge.net |