biotite.structure.io.mmtf.list_assemblies

biotite.structure.io.mmtf.list_assemblies(file)[source]

List the biological assemblies that are available for the structure in the given file.

This function receives the data from the "bioAssemblyList" field in the file. Consequently, this field must be present in the file.

Parameters
fileMMTFFile

The file object.

Returns
assemblieslist of str

A list that contains the available assembly IDs.

Examples

>>> import os.path
>>> file = MMTFFile.read(os.path.join(path_to_structures, "1f2n.mmtf"))
>>> print(list_assemblies(file))
['1', '2', '3', '4', '5', '6']