The mechanics of membrane proteins is a signature of biological function