from_template
#
- biotite.structure.from_template(template, coord, box=None)[source]#
Create an
AtomArrayStack
using template atoms and given coordinates.- Parameters:
- templateAtomArray, shape=(n,) or AtomArrayStack, shape=(m,n)
The annotation arrays and bonds of the returned stack are taken from this template.
- coordndarray, dtype=float, shape=(l,n,3)
The coordinates for each model of the returned stack.
- boxndarray, optional, dtype=float, shape=(l,3,3)
The box for each model of the returned stack.
- Returns:
- array_stackAtomArrayStack
A stack containing the annotation arrays and bonds from template but the coordinates from coord and the boxes from boxes.
Gallery#

Visualization of normal modes from an elastic network model
Visualization of normal modes from an elastic network model