biopython v1.71.0 Bio.PDB.Entity.Entity
Basic container object for PDB heirachy.
Structure, Model, Chain and Residue are subclasses of Entity. It deals with storage and lookup.
Link to this section Summary
Functions
True if there is a child element with the given id
Remove a child
Return the child with given id
Initialize the class
Iterate over children
Return the number of children
Reset the full_id
Add a child to the Entity
Remove a child
Detach the parent
Return the full id
Return the id
Return iterator over children
Return level in hierarchy
Return a copy of the list of children
Return the parent Entity object
True if a child with given id exists
Change the id of this entity
Add a child to the Entity at a specified position
Set the parent Entity object
Apply rotation and translation to the atomic coordinates
Link to this section Functions
True if there is a child element with the given id.
Remove a child.
Return the child with given id.
Initialize the class.
Iterate over children.
Return the number of children.
Reset the full_id.
Sets the full_id of this entity and recursively of all its children to None. This means that it will be newly generated at the next call to get_full_id.
Add a child to the Entity.
Remove a child.
Detach the parent.
Return the full id.
The full id is a tuple containing all id’s starting from the top object (Structure) down to the current object. A full id for a Residue object e.g. is something like:
(“1abc”, 0, “A”, (“ “, 10, “A”))
This corresponds to:
Structure with id “1abc” Model with id 0 Chain with id “A” Residue with id (“ “, 10, “A”)
The Residue id indicates that the residue is not a hetero-residue (or a water) because it has a blank hetero field, that its sequence identifier is 10 and its insertion code “A”.
Return the id.
Return iterator over children.
Return level in hierarchy.
A - atom R - residue C - chain M - model S - structure
Return a copy of the list of children.
Return the parent Entity object.
True if a child with given id exists.
Change the id of this entity.
This will update the child_dict of this entity’s parent and invalidate all cached full ids involving this entity.
@raises: ValueError
Add a child to the Entity at a specified position.
Set the parent Entity object.
Apply rotation and translation to the atomic coordinates.
Example:
>>> rotation=rotmat(pi, Vector(1, 0, 0))
>>> translation=array((0, 0, 1), 'f')
>>> entity.transform(rotation, translation)
:param rot: A right multiplying rotation matrix :type rot: 3x3 Numeric array
:param tran: the translation vector :type tran: size 3 Numeric array