Protein structure prediction and conformational transitions