Analysis of glucosamine