biopython v1.71.0 Bio.PDB.AbstractPropertyMap.AbstractPropertyMap

Initialize the class.

Link to this section Summary

Functions

True if the mapping has a property for this residue

Return property for a residue

Iterate over the (entity, property) list

Return number of residues for which the property is available

True if the mapping has a property for this residue

Return the list of residues

Link to this section Functions

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)

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

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),…]