The function of a protein determined by:
The shape determines the working of a protein. A protein's design is determined by its primary structure i.e the amino acid sequence. The amino acid sequence within a protein is decided by the encoding arrangement of nucleotide in the gene (DNA).
The role of a protein is utterly dependent on its three-dimensional architecture (other than when it caters as food). This framework may be disturbed by a number of agents thereby denaturing the protein: