from_model#
- biotite.interface.pymol.from_model(chempy_model: Indexed, include_bonds: bool = False) AtomArray[Any][source]#
Convert a
chempy.models.Indexedobject into anAtomArray.The returned
AtomArraycontains the optional annotation categoriesb_factor,occupancy,chargeandaltloc_id. No altloc ID filtering is performed.- Parameters:
- chempy_modelIndexed
The
chempymodel.- include_bondsbool, optional
If set to true, an associated
BondListwill be created for the returned atom array.
- Returns:
- atom_arrayAtomArray
The converted structure.