, array, data_block=None)[source]

Set the chem_comp_atom and, if bonds are available, chem_comp_bond category with atom information from an AtomArray.

This will save the coordinates, the mandatory annotation categories and the optional charge category as well as an associated BondList, if available.


The file object.


The chemical component to be written. Must contain only a single residue.

data_blockstr, optional

The name of the data block. Default is the first (and most times only) data block of the file.