Protein structure calculation