mdtraj.compute_rg

mdtraj.compute_rg(traj, masses=None)

Compute the radius of gyration for every frame.

Parameters
trajTrajectory
massesndarray, optional

array of atom masses.

Returns
Rgndarray

Rg for every frame

Notes

If masses are none, assumes equal masses.