biotite.structure.io.pdb.list_assemblies

biotite.structure.io.pdb.list_assemblies(pdb_file)[source]

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

This function receives the data from the REMARK 300 records in the file. Consequently, this remark must be present in the file.

Parameters
pdb_filePDBFile

The file object.

Returns
assemblieslist of str

A list that contains the available assembly IDs.

Examples

>>> import os.path
>>> file = PDBFile.read(os.path.join(path_to_structures, "1f2n.pdb"))
>>> print(list_assemblies(file))
['1']