A pattern of amino acids in a protein sequence which has a specific function, e.g. metal binding. See also consensus sequence.