from_template#
- biotite.structure.from_template(template: AtomArray[N] | AtomArrayStack[Any, N], coord: ndarray[tuple[M, N, XYZ], dtype[floating]], box: ndarray[tuple[M, XYZ, XYZ], dtype[floating]] | None = None) AtomArrayStack[M, N][source]#
Create an
AtomArrayStackusing 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