Get entity id#
Extracting entity identifier strings from molecular systems.
The function molsysmt.element.entity.get_entity_id() retrieves the assigned ID strings for entities in a molecular system.
Added in version 1.0.0.
API documentation
Follow this link for a detailed description of the input arguments, raised errors, and returned objects of this function: molsysmt.element.entity.get_entity_id().
Basic usage#
Let’s extract the IDs for a molecular complex:
import molsysmt as msm
molsys = msm.convert(msm.systems['Barnase-Barstar']['barnase_barstar.h5msm'])
Note
Demo Systems Catalog
This tutorial uses demonstration datasets provided by MolSysMT. To explore the full catalog of bundled systems, forms, and file paths, visit the Demo Systems guide.
ids = msm.element.entity.get_entity_id(molsys, element='entity', selection='all')
print('Entity IDs:', ids)
Entity IDs: ['0', '1']
See also
Related Tools & References
Get entity index: Get entity indices with
molsysmt.element.entity.get_entity_index().Get entity name: Get entity names with
molsysmt.element.entity.get_entity_name().Get entity type: Get entity types with
molsysmt.element.entity.get_entity_type().