The marking of biological material with a dye or other reagent for the purpose of identifying and quantitating components of tissues, cells or their extracts.