Enzyme classification by ligand binding