Deciphering the mechanisms of membrane proteins