save_structure
#
- biotite.structure.io.save_structure(file_path, array, **kwargs)[source]#
Save an
AtomArray
or class`AtomArrayStack` to a structure file without the need to manually instantiate aFile
object.Internally this function uses a
File
object, based on the file extension.- Parameters:
- file_pathstr
The path to structure file.
- arrayAtomArray or AtomArrayStack
The structure to be saved.
- kwargs
Additional parameters will be passed to the respective set_structure method.
- Raises:
- ValueError
If the file format (i.e. the file extension) is unknown.
Gallery#

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