msmbuilder.Trajectory.Trajectory.GetEnumeratedResidueID

Trajectory.GetEnumeratedResidueID()

Returns an array of NONUNIQUE consecutive integers that enumerate over all Residues in the system. STARTING WITH ZERO!

Note: This will return something like [0,0,0,1,1,1,2,2,2]–the first 3 atoms belong to residue 0, the next 3 belong to 1, etc.