New computational methods to study the relationship between protein structure and function