Protein structure analysis script