Orientations.to_file#

Orientations.to_file(filename, file_format=None, **kwargs)[source]#

Save the current class instance to a file in the specified format.

Parameters:
filenamestr

The name of the file where the orientations will be saved.

file_formattype, optional

The format in which to save the orientations. Defaults to None and infers the file_format from the typical extension. Supported formats are

text

pytme’s standard tab-separated orientations file

relion

Creates a STAR file of orientations

dynamo

Creates a dynamo table

**kwargsdict

Additional keyword arguments specific to the file format.

Raises:
ValueError

If an unsupported file format is specified.