biotite.structure.Atom

class biotite.structure.Atom(coord, **kwargs)[source]

Bases: biotite.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
coord: list or ndarray

The x, y and z coordinates.

kwargs

Atom annotations as key value pair.

Examples

>>> atom = Atom([1,2,3], chain_id="A")
>>> atom.atom_name = "CA"
>>> print(atom.atom_name)
CA
>>> print(atom.coord)
[1. 2. 3.]
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.

copy()

Create a deep copy of this object.

Returns
copy

A copy of this object.