Protein structure and function from sequences