newanalysis.helpers.comByResidue

newanalysis.helpers.comByResidue(coor, masses, nres, atoms_per_residue)

Calculates the center-of-mass coordinates for a given selection.

Note

Don’t call this function directly, use the AtomGroup interface instead! E.g. for an atom selection ‘sel’, call

com = sel.comByResidue()