Hi,
In that case, you can just use helix.center_of_mass() rather than helix.center_of_mass(compound='residues') - the later gives you a list with the centers of mass of each residue in the helix, the former gives just the center of mass of the helix as a whole.
If you're concerned about isolating only the "perpendicular" part of the distance between the two helicies since the two helicies are different lengths or if they move parallel to each other, that gets a little trickier; there's not a direct way to do that in MDAnalysis, but you could use
Helanal to get the axis of each helix and then do some vector maths to find the axis perpendicular to both. Personally, what I do instead is manually adjust the atom selections to include only equivalent-length parts of the helicies, or (when looking at transmembrane helicies in a membrane in the xy-plane) take only the xy component of the COM distance.
Hope that helps,
- Fiona
trying to isolate only the , that does get a little trickier - there's a not a way to directly do that in MDAnalysis, but you can , or alter my helix selections to use similar regions / only take a a