Stability and genetic variation of a structural protein