%load_ext autoreload
%autoreload 2
import molsysmt as msm

Get component index#

AAA

molsys = msm.convert(msm.systems['chicken villin HP35']['chicken_villin_HP35_solvated.h5msm'])
indices = msm.element.component.get_component_index(molsys, element='group', selection='all',
                                                    redefine_indices=True)
indices = msm.element.component.get_component_index(molsys, element='component', selection='all',
                                                    redefine_indices=True)
len(indices)
1236