biotite.structure.superimpose_apply

biotite.structure.superimpose_apply(atoms, transformation)[source]

Superimpose structures using a given transformation tuple.

The transformation tuple is obtained by prior superimposition.

Parameters
atomsAtomArray or ndarray, shape(n,), dtype=float

The structure to apply the transformation on. Alternatively coordinates can be given.

transformation: tuple, size=3

The transformation tuple, obtained by superimpose().

Returns
fittedAtomArray or AtomArrayStack

A copy of the atoms structure, with transformations applied. Only coordinates are returned, if coordinates were given in atoms.

See also

superimpose