metrics function

Calculate chemical metrics for proteins