Atom
#
- class biotite.structure.Atom(coord, **kwargs)[source]#
Bases:
Copyable
A representation of a single atom.
The coordinates an annotations can be accessed directly. A detailed description of each annotation category can be viewed here.
- Parameters:
- coordlist or ndarray
The x, y and z coordinates.
- **kwargs
Atom annotations as key value pair.
- Attributes:
- {annot}scalar
Annotations for this atom.
- coordndarray, dtype=float
ndarray containing the x, y and z coordinate of the atom.
- shapetuple of int
Shape of the object. In case of an
Atom
, the tuple is empty.
Examples
>>> atom = Atom([1,2,3], chain_id="A") >>> atom.atom_name = "CA" >>> print(atom.atom_name) CA >>> print(atom.coord) [1. 2. 3.]
- copy()#
Create a deep copy of this object.
- Returns:
- copy
A copy of this object.
Gallery#

Molecular visualization of a small molecule using Matplotlib
Molecular visualization of a small molecule using Matplotlib