A quantitative or qualitative analysis of a substance in a biological environment, such as a culture of living cells.